From: Fabio Baltieri Date: Mon, 7 Jan 2013 09:58:35 +0000 (+0100) Subject: dmaengine: set_dma40: balance clock in probe fail code X-Git-Tag: Ubuntu-5.13.0-19.19~22826^2~25^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=da2ac56a1bc9c6c56244aa9ca990d5c5c7574b5f;p=mirror_ubuntu-jammy-kernel.git dmaengine: set_dma40: balance clock in probe fail code Clock code was changed to use clk_prepare_enable in: b707c65 dma/ste_dma40: Fixup clock usage during probe but clk_disable on probe fail path was not updated. This patch fix this by using clk_disable_unprepare in place of clk_disable. Acked-by: Ulf Hansson Acked-by: Linus Walleij Acked-by: Vinod Koul Signed-off-by: Fabio Baltieri --- diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index a97bbd3a4a47..d77d41d7c463 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -3634,7 +3634,7 @@ failure: release_mem_region(base->phy_start, base->phy_size); if (base->clk) { - clk_disable(base->clk); + clk_disable_unprepare(base->clk); clk_put(base->clk); }