projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3afbb9a
)
arm: omap2: timer: always call clocksource_of_init() when DT
author
Felipe Balbi
<balbi@ti.com>
Tue, 29 Sep 2015 18:15:02 +0000
(13:15 -0500)
committer
Felipe Balbi
<balbi@ti.com>
Fri, 16 Oct 2015 16:06:16 +0000
(11:06 -0500)
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 <balbi@ti.com>
arch/arm/mach-omap2/timer.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-omap2/timer.c
b/arch/arm/mach-omap2/timer.c
index 8f2c75911179f71d97d4f9023c4dd595fef42bfe..851f3ad9e970c44eec99068148547e50e436e7a2 100644
(file)
--- 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)