Skip to content

Commit

Permalink
ARM: tegra: clock: Initialize clocks that have no enable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Cross committed Feb 21, 2011
1 parent 35c47c3 commit f035530
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/arm/mach-tegra/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f035530

Please sign in to comment.