]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP2: Make io.c safe for multi-omap
authorTony Lindgren <tony@atomide.com>
Fri, 6 Jun 2008 19:09:49 +0000 (12:09 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 6 Jun 2008 19:09:49 +0000 (12:09 -0700)
ARM: OMAP2: Make io.c safe for multi-omap

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/io.c

index 2af0cdc80d541b499d9091b24ea33cac330ec924..314994b07070c2432312298ebe252f0f13d2d937 100644 (file)
@@ -171,12 +171,17 @@ void __init omap2_map_common_io(void)
 #if defined(CONFIG_ARCH_OMAP2420)
        iotable_init(omap24xx_io_desc, ARRAY_SIZE(omap24xx_io_desc));
        iotable_init(omap242x_io_desc, ARRAY_SIZE(omap242x_io_desc));
-#elif defined(CONFIG_ARCH_OMAP2430)
+#endif
+
+#if defined(CONFIG_ARCH_OMAP2430)
        iotable_init(omap24xx_io_desc, ARRAY_SIZE(omap24xx_io_desc));
        iotable_init(omap243x_io_desc, ARRAY_SIZE(omap243x_io_desc));
-#elif defined(CONFIG_ARCH_OMAP34XX)
+#endif
+
+#if defined(CONFIG_ARCH_OMAP34XX)
        iotable_init(omap34xx_io_desc, ARRAY_SIZE(omap34xx_io_desc));
 #endif
+
        /* Normally devicemaps_init() would flush caches and tlb after
         * mdesc->map_io(), but we must also do it here because of the CPU
         * revision check below.