Skip to content

Commit

Permalink
ARM: integrator: use clk_prepare_enable() for timer
Browse files Browse the repository at this point in the history
The Integrator timer is using the clock framework to get the
timer frequency, but missed to prepare the clock before enabling.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Linus Walleij authored and Arnd Bergmann committed Aug 6, 2012
1 parent 1b984fb commit 8bb8148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-integrator/integrator_ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ static void __init ap_init_timer(void)

clk = clk_get_sys("ap_timer", NULL);
BUG_ON(IS_ERR(clk));
clk_enable(clk);
clk_prepare_enable(clk);
rate = clk_get_rate(clk);

writel(0, TIMER0_VA_BASE + TIMER_CTRL);
Expand Down

0 comments on commit 8bb8148

Please sign in to comment.