From: Linus Walleij Date: Sun, 5 Aug 2012 20:37:55 +0000 (+0200) Subject: ARM: integrator: use clk_prepare_enable() for timer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8bb8148c78317e9360a21a0e69a58be6862adb07;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Linus Walleij Signed-off-by: Arnd Bergmann --- diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index 7b1055c8e0b9..3b2267529f5e 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c @@ -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);