dmaengine: Simplify dmaenginem_async_device_register() function
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 30 Jan 2023 11:28:30 +0000 (13:28 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 10 Feb 2023 06:07:45 +0000 (11:37 +0530)
commita1beaa50b583a4f137048ff6e55bd2328a4e4362
tree2fcf15a57c4283d1e9047ea960c2ef23bad24e30
parent40e171c2d306e42057433fb2c2f1fee2d385e1c4
dmaengine: Simplify dmaenginem_async_device_register() function

Use devm_add_action_or_reset() instead of devres_alloc() and
devres_add(), which works the same. This will simplify the
code. There is no functional changes.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230130112830.52353-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmaengine.c