* [PATCH v1] clk: palmas: undo preparation of a clock source.
@ 2017-04-28 13:03 Arvind Yadav
2017-06-02 17:49 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Arvind Yadav @ 2017-04-28 13:03 UTC (permalink / raw)
To: mturquette, sboyd; +Cc: linux-clk, linux-kernel
Undo preparation of a clock source, if palmas_clks_init_configure is not
successful.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
drivers/clk/clk-palmas.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/clk-palmas.c b/drivers/clk/clk-palmas.c
index 31f590c..7f51c01 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;
}
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1] clk: palmas: undo preparation of a clock source.
2017-04-28 13:03 [PATCH v1] clk: palmas: undo preparation of a clock source Arvind Yadav
@ 2017-06-02 17:49 ` Stephen Boyd
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2017-06-02 17:49 UTC (permalink / raw)
To: Arvind Yadav; +Cc: mturquette, linux-clk, linux-kernel
On 04/28, Arvind Yadav wrote:
> Undo preparation of a clock source, if palmas_clks_init_configure is not
> successful.
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> ---
Applied to clk-next
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-02 17:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-28 13:03 [PATCH v1] clk: palmas: undo preparation of a clock source Arvind Yadav
2017-06-02 17:49 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).