提交 91e78b25 编写于 作者: A Andy Shevchenko 提交者: Vinod Koul

dmaengine: Actually use devm_add_action_or_reset()

It appears that the commit a1beaa50 ("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: a1beaa50 ("dmaengine: Simplify dmaenginem_async_device_register() function")
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230213112138.32118-1-andriy.shevchenko@linux.intel.comSigned-off-by: NVinod Koul <vkoul@kernel.org>
上级 fe15c26e
...@@ -1342,7 +1342,7 @@ int dmaenginem_async_device_register(struct dma_device *device) ...@@ -1342,7 +1342,7 @@ int dmaenginem_async_device_register(struct dma_device *device)
if (ret) if (ret)
return 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); EXPORT_SYMBOL(dmaenginem_async_device_register);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册