提交 8fedfee4 编写于 作者: A Arvind Yadav 提交者: Stephen Boyd

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: NArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
上级 428c9de5
...@@ -229,6 +229,7 @@ static int palmas_clks_init_configure(struct palmas_clock_info *cinfo) ...@@ -229,6 +229,7 @@ static int palmas_clks_init_configure(struct palmas_clock_info *cinfo)
if (ret < 0) { if (ret < 0) {
dev_err(cinfo->dev, "Ext config for %s failed, %d\n", dev_err(cinfo->dev, "Ext config for %s failed, %d\n",
cinfo->clk_desc->clk_name, ret); cinfo->clk_desc->clk_name, ret);
clk_unprepare(cinfo->hw.clk);
return ret; return ret;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册