Commit c88c2d46 authored by Huang Shijie's avatar Huang Shijie Committed by Vinod Koul

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: default avatarHuang Shijie <sjhuang@iluvatar.ai>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent a5c1d8ec
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment