mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
dmaengine: k3dma: add missing clk_disable_unprepare() on error in k3_dma_probe()
Add the missing clk_disable_unprepare() before return from k3_dma_probe() in the error handling case. Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
parent
e94570a36b
commit
89b90c09b5
1 changed files with 3 additions and 1 deletions
|
|
@ -757,7 +757,7 @@ static int k3_dma_probe(struct platform_device *op)
|
|||
|
||||
ret = dma_async_device_register(&d->slave);
|
||||
if (ret)
|
||||
return ret;
|
||||
goto dma_async_register_fail;
|
||||
|
||||
ret = of_dma_controller_register((&op->dev)->of_node,
|
||||
k3_of_dma_simple_xlate, d);
|
||||
|
|
@ -774,6 +774,8 @@ static int k3_dma_probe(struct platform_device *op)
|
|||
|
||||
of_dma_register_fail:
|
||||
dma_async_device_unregister(&d->slave);
|
||||
dma_async_register_fail:
|
||||
clk_disable_unprepare(d->clk);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue