projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35c47c3
)
ARM: tegra: clock: Initialize clocks that have no enable
author
Colin Cross
<ccross@android.com>
Thu, 14 Oct 2010 02:16:02 +0000
(19:16 -0700)
committer
Colin Cross
<ccross@android.com>
Mon, 21 Feb 2011 08:09:12 +0000
(
00:09
-0800)
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>
arch/arm/mach-tegra/clock.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-tegra/clock.c
b/arch/arm/mach-tegra/clock.c
index f55bb83fb2d37049ee0901a4e11db4a72613cfde..92bcc20723023b05a710bc3782950f938065626c 100644
(file)
--- 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);