From: Huang Shijie Date: Mon, 6 Aug 2018 08:52:24 +0000 (+0800) Subject: dmaengine: stm32-mdma: use dmaenginem_async_device_register to simplify the code X-Git-Tag: v5.4-rc1~2381^2~10^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42f604b6516b9e4d6847f6461aa4260effe68f55;p=platform%2Fkernel%2Flinux-rpi.git dmaengine: stm32-mdma: use dmaenginem_async_device_register to simplify the code Use dmaenginem_async_device_register to simplify the code: remove dma_async_device_unregister. Acked-by: Pierre-Yves MORDRET Signed-off-by: Huang Shijie Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/stm32-mdma.c b/drivers/dma/stm32-mdma.c index 06dd172..390e4ca 100644 --- a/drivers/dma/stm32-mdma.c +++ b/drivers/dma/stm32-mdma.c @@ -1656,7 +1656,7 @@ static int stm32_mdma_probe(struct platform_device *pdev) return ret; } - ret = dma_async_device_register(dd); + ret = dmaenginem_async_device_register(dd); if (ret) return ret; @@ -1674,8 +1674,6 @@ static int stm32_mdma_probe(struct platform_device *pdev) return 0; err_unregister: - dma_async_device_unregister(dd); - return ret; }