mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
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>
This commit is contained in:
parent
35c47c3bba
commit
f035530b79
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user