dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dmaengine: dma-jz4780: add missed clk_disable_unprepare in remove
@ 2019-11-04 16:16 Chuhong Yuan
  2019-11-05  9:01 ` Paul Cercueil
  2019-11-08  3:54 ` Vinod Koul
  0 siblings, 2 replies; 3+ messages in thread
From: Chuhong Yuan @ 2019-11-04 16:16 UTC (permalink / raw)
  Cc: Paul Cercueil, Zubair Lutfullah Kakakhel, Dan Williams,
	Vinod Koul, dmaengine, linux-kernel, Chuhong Yuan

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>
---
 drivers/dma/dma-jz4780.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c
index cafb1cc065bb..66ab76b9520f 100644
--- a/drivers/dma/dma-jz4780.c
+++ b/drivers/dma/dma-jz4780.c
@@ -987,6 +987,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++)
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-08  3:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-04 16:16 [PATCH] dmaengine: dma-jz4780: add missed clk_disable_unprepare in remove Chuhong Yuan
2019-11-05  9:01 ` Paul Cercueil
2019-11-08  3:54 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).