Browse Source

omap: Fix CONFIG_LOCAL_TIMERS initialization for multi-omap

Fix CONFIG_LOCAL_TIMERS initialization for multi-omap

Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-By: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tony Lindgren 14 years ago
parent
commit
c308341106
1 changed files with 4 additions and 2 deletions
  1. 4 2
      arch/arm/mach-omap2/timer-gp.c

+ 4 - 2
arch/arm/mach-omap2/timer-gp.c

@@ -228,8 +228,10 @@ static void __init omap2_gp_clocksource_init(void)
 static void __init omap2_gp_timer_init(void)
 static void __init omap2_gp_timer_init(void)
 {
 {
 #ifdef CONFIG_LOCAL_TIMERS
 #ifdef CONFIG_LOCAL_TIMERS
-	twd_base = ioremap(OMAP44XX_LOCAL_TWD_BASE, SZ_256);
-	BUG_ON(!twd_base);
+	if (cpu_is_omap44xx()) {
+		twd_base = ioremap(OMAP44XX_LOCAL_TWD_BASE, SZ_256);
+		BUG_ON(!twd_base);
+	}
 #endif
 #endif
 	omap_dm_timer_init();
 	omap_dm_timer_init();