OMAP: Remove OMAP_IO_ADDRESS, use OMAP1_IO_ADDRESS and OMAP2_IO_ADDRESS instead
[linux-2.6.git] / arch / arm / plat-omap / dmtimer.c
index 7f50b61..d325b54 100644 (file)
@@ -774,7 +774,10 @@ int __init omap_dm_timer_init(void)
 
        for (i = 0; i < dm_timer_count; i++) {
                timer = &dm_timers[i];
-               timer->io_base = IO_ADDRESS(timer->phys_base);
+               if (cpu_class_is_omap1())
+                       timer->io_base = OMAP1_IO_ADDRESS(timer->phys_base);
+               else
+                       timer->io_base = OMAP2_IO_ADDRESS(timer->phys_base);
 #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \
                                        defined(CONFIG_ARCH_OMAP4)
                if (cpu_class_is_omap2()) {