aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/timer.c')
-rw-r--r--arch/arm/mach-omap2/timer.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index 16b37e7196f5..e4d8701f99f9 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -208,8 +208,7 @@ static void __init omap_dmtimer_init(void)
208 /* If we are a secure device, remove any secure timer nodes */ 208 /* If we are a secure device, remove any secure timer nodes */
209 if ((omap_type() != OMAP2_DEVICE_TYPE_GP)) { 209 if ((omap_type() != OMAP2_DEVICE_TYPE_GP)) {
210 np = omap_get_timer_dt(omap_timer_match, "ti,timer-secure"); 210 np = omap_get_timer_dt(omap_timer_match, "ti,timer-secure");
211 if (np) 211 of_node_put(np);
212 of_node_put(np);
213 } 212 }
214} 213}
215 214
@@ -649,23 +648,10 @@ static OMAP_SYS_32K_TIMER_INIT(4, 1, "timer_32k_ck", "ti,timer-alwon",
649 648
650#ifdef CONFIG_ARCH_OMAP4 649#ifdef CONFIG_ARCH_OMAP4
651#ifdef CONFIG_HAVE_ARM_TWD 650#ifdef CONFIG_HAVE_ARM_TWD
652static DEFINE_TWD_LOCAL_TIMER(twd_local_timer, OMAP44XX_LOCAL_TWD_BASE, 29);
653void __init omap4_local_timer_init(void) 651void __init omap4_local_timer_init(void)
654{ 652{
655 omap4_sync32k_timer_init(); 653 omap4_sync32k_timer_init();
656 /* Local timers are not supprted on OMAP4430 ES1.0 */ 654 clocksource_of_init();
657 if (omap_rev() != OMAP4430_REV_ES1_0) {
658 int err;
659
660 if (of_have_populated_dt()) {
661 clocksource_of_init();
662 return;
663 }
664
665 err = twd_local_timer_register(&twd_local_timer);
666 if (err)
667 pr_err("twd_local_timer_register failed %d\n", err);
668 }
669} 655}
670#else 656#else
671void __init omap4_local_timer_init(void) 657void __init omap4_local_timer_init(void)