diff options
author | Chuhong Yuan <hslester96@gmail.com> | 2019-11-04 17:16:22 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-11-08 04:54:16 +0100 |
commit | 9568feda4e2914bc50c5cd4fbca57210815f9dc9 (patch) | |
tree | 305e6187fcc1cceec3685060d5b426e05ca6239a /drivers/dma/dma-jz4780.c | |
parent | dmaengine: JZ4780: Add support for the X1000. (diff) | |
download | linux-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.c | 1 |
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++) |