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>
This commit is contained in:
parent
fee175e44c
commit
9568feda4e
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue