aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-omap2/timer-gp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/timer-gp.c b/arch/arm/mach-omap2/timer-gp.c
index 74fbed8491f2..5a3e606dc44a 100644
--- a/arch/arm/mach-omap2/timer-gp.c
+++ b/arch/arm/mach-omap2/timer-gp.c
@@ -228,8 +228,10 @@ static void __init omap2_gp_clocksource_init(void)
228static void __init omap2_gp_timer_init(void) 228static void __init omap2_gp_timer_init(void)
229{ 229{
230#ifdef CONFIG_LOCAL_TIMERS 230#ifdef CONFIG_LOCAL_TIMERS
231 twd_base = ioremap(OMAP44XX_LOCAL_TWD_BASE, SZ_256); 231 if (cpu_is_omap44xx()) {
232 BUG_ON(!twd_base); 232 twd_base = ioremap(OMAP44XX_LOCAL_TWD_BASE, SZ_256);
233 BUG_ON(!twd_base);
234 }
233#endif 235#endif
234 omap_dm_timer_init(); 236 omap_dm_timer_init();
235 237