mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
[ARM] tegra: clock: Initialize clocks that have no enable
Change-Id: I136713c2a2ff9fec9fc629ae8f91709e49016618 Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user