DORMANTno replies

[PATCH] disable the correct parent clock in clk_gate_disable()

From: Lothar Waßmann <hidden>
Date: 2011-08-02 07:07:21
Also in: lkml
Subsystem: common clk framework, the rest · Maintainers: Stephen Boyd, Brian Masney, Jerome Brunet, Linus Torvalds

Calling clk_parent_disable() on the parent clock goes one step too far
up the clock hierarchy.

Signed-off-by: Lothar Wa?mann <redacted>
---
 drivers/clk/clk-gate.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c
index a10d8e3..712960a 100644
--- a/drivers/clk/clk-gate.c
+++ b/drivers/clk/clk-gate.c
@@ -90,9 +90,7 @@ static void clk_gate_disable(struct clk *clk)
 	struct clk_gate *gate = to_clk_gate(clk);
 
 	gate->disable(gate);
-
-	if (gate->parent)
-		clk_parent_disable(gate->parent);
+	clk_parent_disable(clk);
 }
 
 static struct clk *clk_gate_get_parent(struct clk *clk)
-- 
1.5.6.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help