mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
dmaengine: dw-axi-dmac: use dmaenginem_async_device_register to simplify the code
Use dmaenginem_async_device_register to simplify the code: remove dma_async_device_unregister. Signed-off-by: Huang Shijie <sjhuang@iluvatar.ai> Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
a5c1d8ec73
commit
c88c2d46e2
1 changed files with 1 additions and 3 deletions
|
|
@ -934,7 +934,7 @@ static int dw_probe(struct platform_device *pdev)
|
|||
|
||||
pm_runtime_put(chip->dev);
|
||||
|
||||
ret = dma_async_device_register(&dw->dma);
|
||||
ret = dmaenginem_async_device_register(&dw->dma);
|
||||
if (ret)
|
||||
goto err_pm_disable;
|
||||
|
||||
|
|
@ -977,8 +977,6 @@ static int dw_remove(struct platform_device *pdev)
|
|||
tasklet_kill(&chan->vc.task);
|
||||
}
|
||||
|
||||
dma_async_device_unregister(&dw->dma);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue