* [PATCH] disable the correct parent clock in clk_gate_disable()
@ 2011-08-02 7:07 Lothar Waßmann
0 siblings, 0 replies; only message in thread
From: Lothar Waßmann @ 2011-08-02 7:07 UTC (permalink / raw)
To: linux-kernel; +Cc: Sascha Hauer, linux-arm-kernel, Lothar Waßmann
Calling clk_parent_disable() on the parent clock goes one step too far
up the clock hierarchy.
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-02 7:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-02 7:07 [PATCH] disable the correct parent clock in clk_gate_disable() Lothar Waßmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®