diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/clock.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c index f55bb83fb2d3..92bcc2072302 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) | |||
166 | if (c->ops && c->ops->init) | 166 | if (c->ops && c->ops->init) |
167 | c->ops->init(c); | 167 | c->ops->init(c); |
168 | 168 | ||
169 | if (!c->ops || !c->ops->enable) { | ||
170 | c->refcnt++; | ||
171 | c->set = 1; | ||
172 | if (c->parent) | ||
173 | c->state = c->parent->state; | ||
174 | else | ||
175 | c->state = ON; | ||
176 | } | ||
177 | |||
169 | clk_recalculate_rate(c); | 178 | clk_recalculate_rate(c); |
170 | 179 | ||
171 | list_add(&c->node, &clocks); | 180 | list_add(&c->node, &clocks); |