提交 d3e8b756 编写于 作者: L Linus Walleij

ARM: plat-nomadik: handle clocking properly

clk_prepare() was missing from the Nomadik MTU driver, also handle
errors on prepare and enable in the simplest way possible, by
bugging out - we cannot start the system without time anyway.
Acked-by: NAlessandro Rubini <rubini@unipv.it>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 b9576623
...@@ -190,8 +190,8 @@ void __init nmdk_timer_init(void __iomem *base) ...@@ -190,8 +190,8 @@ void __init nmdk_timer_init(void __iomem *base)
mtu_base = base; mtu_base = base;
clk0 = clk_get_sys("mtu0", NULL); clk0 = clk_get_sys("mtu0", NULL);
BUG_ON(IS_ERR(clk0)); BUG_ON(IS_ERR(clk0));
BUG_ON(clk_prepare(clk0) < 0);
clk_enable(clk0); BUG_ON(clk_enable(clk0) < 0);
/* /*
* Tick rate is 2.4MHz for Nomadik and 2.4Mhz, 100MHz or 133 MHz * Tick rate is 2.4MHz for Nomadik and 2.4Mhz, 100MHz or 133 MHz
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册