]> pilppa.com 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>
Tue, 5 Jun 2007 07:58:00 +0000 (00:58 -0700)
Level handling is different for omap1 and omap2.

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

index 506bffcbc6dc9f319eafc8d2804ae123ed1181d3..2bf25105cf7576f1c3293cd714b8aef36c1c8ce0 100644 (file)
@@ -239,13 +239,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)