summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-04-28 18:33:07 +0530
committerStephen Boyd <sboyd@codeaurora.org>2017-06-02 10:51:34 -0700
commit8fedfee49fb57244df8d96de1478eed79f45bd83 (patch)
tree50d7482020e53a6c30de959a38b8fc53f23a5959
parent428c9de583921c4b699622272c04af4e362c474c (diff)
downloadlinux-stable-8fedfee49fb57244df8d96de1478eed79f45bd83.tar.gz
linux-stable-8fedfee49fb57244df8d96de1478eed79f45bd83.tar.bz2
linux-stable-8fedfee49fb57244df8d96de1478eed79f45bd83.zip
clk: palmas: undo preparation of a clock source.
Undo preparation of a clock source, if palmas_clks_init_configure is not successful. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r--drivers/clk/clk-palmas.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/clk-palmas.c b/drivers/clk/clk-palmas.c
index 31f590cea493..7f51c01085ab 100644
--- a/drivers/clk/clk-palmas.c
+++ b/drivers/clk/clk-palmas.c
@@ -229,6 +229,7 @@ static int palmas_clks_init_configure(struct palmas_clock_info *cinfo)
if (ret < 0) {
dev_err(cinfo->dev, "Ext config for %s failed, %d\n",
cinfo->clk_desc->clk_name, ret);
+ clk_unprepare(cinfo->hw.clk);
return ret;
}
}