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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
}