summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-palmas.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-04-28 16:03:07 +0300
committerStephen Boyd <sboyd@codeaurora.org>2017-06-02 20:51:34 +0300
commit8fedfee49fb57244df8d96de1478eed79f45bd83 (patch)
tree50d7482020e53a6c30de959a38b8fc53f23a5959 /drivers/clk/clk-palmas.c
parent428c9de583921c4b699622272c04af4e362c474c (diff)
downloadlinux-8fedfee49fb57244df8d96de1478eed79f45bd83.tar.xz
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>
Diffstat (limited to 'drivers/clk/clk-palmas.c')
-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;
}
}