提交 874b300a 编写于 作者: T Tony Lindgren

ARM: OMAP2+: Fix booting if no timer parent clock is available

When bringing up a new SoC we needlessly prevent booting at timer
init if timer clock_set_parent fails. This can fail if the system
is booting on bootloader configured PLL values until the clock
framework driver for the PLL is implemented.

Let's just WARN instead, this will provide helpful information
for anybody bringing up a new SoC what needs to be fixed.

This allows to boot dm814x that's still missing the PLL driver.
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 fe8291e8
...@@ -297,12 +297,8 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer, ...@@ -297,12 +297,8 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,
if (IS_ERR(src)) if (IS_ERR(src))
return PTR_ERR(src); return PTR_ERR(src);
r = clk_set_parent(timer->fclk, src); WARN(clk_set_parent(timer->fclk, src) < 0,
if (r < 0) { "Cannot set timer parent clock, no PLL clock driver?");
pr_warn("%s: %s cannot set source\n", __func__, oh->name);
clk_put(src);
return r;
}
clk_put(src); clk_put(src);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册