Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1632856 > unrolled thread

[PATCH v1] clk: palmas: undo preparation of a clock source.

Started byArvind Yadav <arvind.yadav.cs@gmail.com>
First post2017-04-28 15:10 +0200
Last post2017-04-28 15:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v1] clk: palmas: undo preparation of a clock source. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-04-28 15:10 +0200

#1632856 — [PATCH v1] clk: palmas: undo preparation of a clock source.

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-04-28 15:10 +0200
Subject[PATCH v1] clk: palmas: undo preparation of a clock source.
Message-ID<tBdON-7J4-1@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web