]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
dmaengine: set_dma40: balance clock in probe fail code
authorFabio Baltieri <fabio.baltieri@linaro.org>
Mon, 7 Jan 2013 09:58:35 +0000 (10:58 +0100)
committerFabio Baltieri <fabio.baltieri@linaro.org>
Mon, 14 Jan 2013 09:51:16 +0000 (10:51 +0100)
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 <ulf.hansson@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
drivers/dma/ste_dma40.c

index a97bbd3a4a478ae056178f2404bb6f797c4df0c0..d77d41d7c463ee14d8b923ab92943e42c81d8c03 100644 (file)
@@ -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);
                }