Skip to content

Commit 91e78b2

Browse files
andy-shevvinodkoul
authored andcommitted
dmaengine: Actually use devm_add_action_or_reset()
It appears that the commit a1beaa5 ("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: a1beaa5 ("dmaengine: Simplify dmaenginem_async_device_register() function") Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent fe15c26 commit 91e78b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/dmaengine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ int dmaenginem_async_device_register(struct dma_device *device)
13421342
if (ret)
13431343
return ret;
13441344

1345-
return devm_add_action(device->dev, dmaenginem_async_device_unregister, device);
1345+
return devm_add_action_or_reset(device->dev, dmaenginem_async_device_unregister, device);
13461346
}
13471347
EXPORT_SYMBOL(dmaenginem_async_device_register);
13481348

0 commit comments

Comments
 (0)