projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c88c2d4
)
dmaengine: stm32-mdma: use dmaenginem_async_device_register to simplify the code
author
Huang Shijie
<sjhuang@iluvatar.ai>
Mon, 6 Aug 2018 08:52:24 +0000
(16:52 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Wed, 29 Aug 2018 16:13:17 +0000
(21:43 +0530)
Use dmaenginem_async_device_register to simplify the code:
remove dma_async_device_unregister.
Acked-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
Signed-off-by: Huang Shijie <sjhuang@iluvatar.ai>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/stm32-mdma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/stm32-mdma.c
b/drivers/dma/stm32-mdma.c
index 06dd1725375e514710c245305069d61586ac2961..390e4cae0e1a5519a12fb4ba47401633a5c42b3a 100644
(file)
--- a/
drivers/dma/stm32-mdma.c
+++ b/
drivers/dma/stm32-mdma.c
@@
-1656,7
+1656,7
@@
static int stm32_mdma_probe(struct platform_device *pdev)
return ret;
}
- ret = dma_async_device_register(dd);
+ ret = dma
enginem
_async_device_register(dd);
if (ret)
return ret;
@@
-1674,8
+1674,6
@@
static int stm32_mdma_probe(struct platform_device *pdev)
return 0;
err_unregister:
- dma_async_device_unregister(dd);
-
return ret;
}