From: Arvind Yadav Date: Fri, 28 Apr 2017 13:03:07 +0000 (+0530) Subject: clk: palmas: undo preparation of a clock source. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8fedfee49fb57244df8d96de1478eed79f45bd83;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Stephen Boyd --- 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; } }