OSDN Git Service

dmaengine: dma-jz4780: add missed clk_disable_unprepare in remove
authorChuhong Yuan <hslester96@gmail.com>
Mon, 4 Nov 2019 16:16:22 +0000 (00:16 +0800)
committerVinod 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

index 848c328..fa626ac 100644 (file)
@@ -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++)