OSDN Git Service

soc: qcom: pil: Fix error path sequence
authorPuja Gupta <pujag@codeaurora.org>
Tue, 10 May 2016 23:09:19 +0000 (16:09 -0700)
committerJeevan Shriram <jshriram@codeaurora.org>
Tue, 17 May 2016 03:10:31 +0000 (20:10 -0700)
Fix the clock error path sequence.

CRs-Fixed: 1015492
Change-Id: I20eeadbfcdae16ce9c2feb8b882471683766ec4f
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
drivers/soc/qcom/pil-msa.c

index 94cc9fe..618d872 100644 (file)
@@ -178,16 +178,17 @@ static int pil_mss_enable_clks(struct q6v5_data *drv)
                goto err_mnoc_axi_clk;
        return 0;
 err_mnoc_axi_clk:
-       clk_disable_unprepare(drv->snoc_axi_clk);
+       clk_disable_unprepare(drv->mnoc_axi_clk);
 err_snoc_axi_clk:
-       clk_disable_unprepare(drv->gpll0_mss_clk);
+       clk_disable_unprepare(drv->snoc_axi_clk);
 err_gpll0_mss_clk:
-       clk_disable_unprepare(drv->rom_clk);
+       clk_disable_unprepare(drv->gpll0_mss_clk);
 err_rom_clk:
-       clk_disable_unprepare(drv->axi_clk);
+       clk_disable_unprepare(drv->rom_clk);
 err_axi_clk:
-       clk_disable_unprepare(drv->ahb_clk);
+       clk_disable_unprepare(drv->axi_clk);
 err_ahb_clk:
+       clk_disable_unprepare(drv->ahb_clk);
        return ret;
 }