dmaengine: Actually use devm_add_action_or_reset()
It appears that the commita1beaa50b5("dmaengine: Simplify dmaenginem_async_device_register() function") mentions devm_add_action_or_reset() the actual change utilised devm_add_action() call by mistake. Fix the issue by switching to devm_add_action_or_reset(). Fixes:a1beaa50b5("dmaengine: Simplify dmaenginem_async_device_register() function") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230213112138.32118-1-andriy.shevchenko@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
committed by
Vinod Koul
parent
fe15c26ee2
commit
91e78b2585
@@ -1342,7 +1342,7 @@ int dmaenginem_async_device_register(struct dma_device *device)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return devm_add_action(device->dev, dmaenginem_async_device_unregister, device);
|
||||
return devm_add_action_or_reset(device->dev, dmaenginem_async_device_unregister, device);
|
||||
}
|
||||
EXPORT_SYMBOL(dmaenginem_async_device_register);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user