summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2019-11-05 00:16:22 +0800
committerVinod Koul <vkoul@kernel.org>2019-11-08 09:24:16 +0530
commit9568feda4e2914bc50c5cd4fbca57210815f9dc9 (patch)
tree305e6187fcc1cceec3685060d5b426e05ca6239a /drivers/dma
parentfee175e44cb34ee86e589b2c22c617d00aaac21b (diff)
downloadlinux-9568feda4e2914bc50c5cd4fbca57210815f9dc9.tar.gz
linux-9568feda4e2914bc50c5cd4fbca57210815f9dc9.tar.bz2
linux-9568feda4e2914bc50c5cd4fbca57210815f9dc9.zip
dmaengine: dma-jz4780: add missed clk_disable_unprepare in remove
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>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/dma-jz4780.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c
index 848c3281b7ef..fa626acdc9b9 100644
--- 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++)