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:
fee175e
)
dmaengine: dma-jz4780: add missed clk_disable_unprepare in remove
author
Chuhong Yuan
<hslester96@gmail.com>
Mon, 4 Nov 2019 16:16:22 +0000
(
00:16
+0800)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 8 Nov 2019 03:54:16 +0000
(09:24 +0530)
The remove misses to disable and unprepare jzdma->clk.
Add a call to clk_disable_unprepare to fix it.
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Link:
https://lore.kernel.org/r/20191104161622.11758-1-hslester96@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-jz4780.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/dma-jz4780.c
b/drivers/dma/dma-jz4780.c
index 848c3281b7ef17ca786fef44f5ae27785ec4884b..fa626acdc9b961919208a316d719ad9d2f25118b 100644
(file)
--- a/
drivers/dma/dma-jz4780.c
+++ b/
drivers/dma/dma-jz4780.c
@@
-981,6
+981,7
@@
static int jz4780_dma_remove(struct platform_device *pdev)
of_dma_controller_free(pdev->dev.of_node);
+ clk_disable_unprepare(jzdma->clk);
free_irq(jzdma->irq, jzdma);
for (i = 0; i < jzdma->soc_data->nb_channels; i++)