summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-10-13 19:16:02 -0700
committerColin Cross <ccross@android.com>2011-02-21 00:09:12 -0800
commitf035530b799a9c945415ad2139bb6494b542639a (patch)
tree9d8a383ba001bda4924226e31b5c31939e402de9
parent35c47c3bbaa82b046d645aed2b709ce12ef0e25e (diff)
downloadop-kernel-dev-f035530b799a9c945415ad2139bb6494b542639a.zip
op-kernel-dev-f035530b799a9c945415ad2139bb6494b542639a.tar.gz
ARM: tegra: clock: Initialize clocks that have no enable
Assume that any clock that has no enable op is always on. Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: Colin Cross <ccross@android.com>
-rw-r--r--arch/arm/mach-tegra/clock.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c
index f55bb83..92bcc207 100644
--- a/arch/arm/mach-tegra/clock.c
+++ b/arch/arm/mach-tegra/clock.c
@@ -166,6 +166,15 @@ void clk_init(struct clk *c)
if (c->ops && c->ops->init)
c->ops->init(c);
+ if (!c->ops || !c->ops->enable) {
+ c->refcnt++;
+ c->set = 1;
+ if (c->parent)
+ c->state = c->parent->state;
+ else
+ c->state = ON;
+ }
+
clk_recalculate_rate(c);
list_add(&c->node, &clocks);
OpenPOWER on IntegriCloud