| From | Huang Shijie <> | Subject | [PATCH 29/46] dmaengine: hidma: use dmaenginem_async_device_register to simplify the code | Date | Fri, 3 Aug 2018 15:19:59 +0800 |
| |
Use dmaenginem_async_device_register to simplify the code: remove dma_async_device_unregister.
Signed-off-by: Huang Shijie <sjhuang@iluvatar.ai> --- drivers/dma/qcom/hidma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c index 43d4b00b8138..1d8130edea58 100644 --- a/drivers/dma/qcom/hidma.c +++ b/drivers/dma/qcom/hidma.c @@ -877,7 +877,7 @@ static int hidma_probe(struct platform_device *pdev) if (rc) goto uninit; - rc = dma_async_device_register(&dmadev->ddev); + rc = dmaenginem_async_device_register(&dmadev->ddev); if (rc) goto uninit; @@ -924,7 +924,6 @@ static int hidma_remove(struct platform_device *pdev) struct hidma_dev *dmadev = platform_get_drvdata(pdev); pm_runtime_get_sync(dmadev->ddev.dev); - dma_async_device_unregister(&dmadev->ddev); if (!dmadev->lldev->msi_support) devm_free_irq(dmadev->ddev.dev, dmadev->irq, dmadev->lldev); else -- 2.17.1
|