]> 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>
Tue, 8 May 2007 20:39:56 +0000 (13:39 -0700)
Level handling is different for omap1 and omap2.

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

index 7053026d6c765aa0fecfcecaaf995e7409b9d2ee..ea390f82effc17eaf0e6b8cc4442a5b548539658 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)