summaryrefslogtreecommitdiffstats
path: root/drivers/dma/dma-jz4780.c
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2019-11-04 17:16:22 +0100
committerVinod Koul <vkoul@kernel.org>2019-11-08 04:54:16 +0100
commit9568feda4e2914bc50c5cd4fbca57210815f9dc9 (patch)
tree305e6187fcc1cceec3685060d5b426e05ca6239a /drivers/dma/dma-jz4780.c
parentdmaengine: JZ4780: Add support for the X1000. (diff)
downloadlinux-9568feda4e2914bc50c5cd4fbca57210815f9dc9.tar.xz
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/dma-jz4780.c')
-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++)