mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08: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
@ -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 New Issue
Block a user