Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f035530b authored by Colin Cross's avatar Colin Cross
Browse files

ARM: tegra: clock: Initialize clocks that have no enable



Assume that any clock that has no enable op is always on.

Acked-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarColin Cross <ccross@android.com>
parent 35c47c3b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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);