Commit 8bb8148c authored by Linus Walleij's avatar Linus Walleij Committed by Arnd Bergmann

ARM: integrator: use clk_prepare_enable() for timer

The Integrator timer is using the clock framework to get the
timer frequency, but missed to prepare the clock before enabling.
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 1b984fbe
...@@ -456,7 +456,7 @@ static void __init ap_init_timer(void) ...@@ -456,7 +456,7 @@ static void __init ap_init_timer(void)
clk = clk_get_sys("ap_timer", NULL); clk = clk_get_sys("ap_timer", NULL);
BUG_ON(IS_ERR(clk)); BUG_ON(IS_ERR(clk));
clk_enable(clk); clk_prepare_enable(clk);
rate = clk_get_rate(clk); rate = clk_get_rate(clk);
writel(0, TIMER0_VA_BASE + TIMER_CTRL); writel(0, TIMER0_VA_BASE + TIMER_CTRL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment