From: Felipe Balbi Date: Tue, 29 Sep 2015 18:15:02 +0000 (-0500) Subject: arm: omap2: timer: always call clocksource_of_init() when DT X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9c46ffcd521474056629aea580a092559f721b32;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git arm: omap2: timer: always call clocksource_of_init() when DT If booting with DT, let's make sure to always call clocksource_of_init() as this will make it easier to move timer code to drivers/clocksource in the future. Signed-off-by: Felipe Balbi --- diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index 8f2c75911179..851f3ad9e970 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c @@ -496,6 +496,9 @@ void __init omap_sync32k_timer_init(void) { __omap_sync32k_timer_init(1, "timer_32k_ck", "ti,timer-alwon", 2, "timer_sys_ck", NULL, false); + + if (of_have_populated_dt()) + clocksource_of_init(); } #if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_AM43XX)