From: "Lothar Waßmann" <LW@KARO-electronics.de>
To: linux-kernel@vger.kernel.org
Cc: "Sascha Hauer" <s.hauer@pengutronix.de>,
linux-arm-kernel@lists.infradead.org,
"Lothar Waßmann" <LW@KARO-electronics.de>
Subject: [PATCH] disable the correct parent clock in clk_gate_disable()
Date: Tue, 2 Aug 2011 09:07:15 +0200 [thread overview]
Message-ID: <1312268835-32291-1-git-send-email-LW@KARO-electronics.de> (raw)
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
reply other threads:[~2011-08-02 7:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1312268835-32291-1-git-send-email-LW@KARO-electronics.de \
--to=lw@karo-electronics.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®