On 25-07-18, 13:46, Huang Shijie wrote:I can add some new users if you want.
This patch adds the dmam_async_device_register for DMA code.no users?
Use the Devres to call the release for the DMA engine driver.
ok.
Signed-off-by: Huang Shijie <sjhuang@xxxxxxxxxxx>can we name it dmaengine_async_device_register, not to confuse with dma APIs
---
Documentation/driver-model/devres.txt | 1 +
drivers/dma/dmaengine.c | 35 +++++++++++++++++++++++++++
include/linux/dmaengine.h | 1 +
3 files changed, 37 insertions(+)
diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt
index a3e8bceb5f19..26c6de621446 100644
--- a/Documentation/driver-model/devres.txt
+++ b/Documentation/driver-model/devres.txt
@@ -240,6 +240,7 @@ CLOCK
devm_of_clk_add_hw_provider()
DMA
+ dmam_async_device_register()