]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
smc91x: Clean up omap machine type handling
authorTony Lindgren <tony@atomide.com>
Wed, 28 Feb 2007 12:27:19 +0000 (04:27 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 26 Apr 2007 17:05:38 +0000 (17:05 +0000)
Level handling is different for omap1 and omap2.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/net/smc91x.h

index d2767e6584a98c320d1ac88ff1a830b5b4131149..ab2efd48aecb8b9acda33198a427cad3fe025823 100644 (file)
@@ -192,13 +192,14 @@ SMC_outw(u16 val, void __iomem *ioaddr, int reg)
 #include <asm/mach-types.h>
 #include <asm/arch/cpu.h>
 
-#define        SMC_IRQ_FLAGS (( \
-                  machine_is_omap_h2() \
-               || machine_is_omap_h3() \
-               || machine_is_omap_h4() \
-               || (machine_is_omap_innovator() && !cpu_is_omap1510()) \
-       ) ? IRQF_TRIGGER_FALLING : IRQF_TRIGGER_RISING)
-
+#ifdef CONFIG_ARCH_OMAP1
+#define        SMC_IRQ_FLAGS           ((machine_is_omap_innovator() ||        \
+                                       machine_is_omap_osk())          \
+                               ? IRQF_TRIGGER_RISING : IRQF_TRIGGER_FALLING)
+#else
+#define SMC_IRQ_FLAGS          (machine_is_omap_apollon()              \
+                               ? IRQF_TRIGGER_RISING : IRQF_TRIGGER_LOW)
+#endif
 
 #elif  defined(CONFIG_SH_SH4202_MICRODEV)