diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/board-2430sdp.c | 6 | ||||
-rw-r--r-- | arch/arm/plat-omap/gpio.c | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index a11a575745e4..cfdc877fc030 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -122,11 +122,7 @@ static struct omap_smc91x_platform_data board_smc91x_data = { | |||
122 | 122 | ||
123 | static void __init board_smc91x_init(void) | 123 | static void __init board_smc91x_init(void) |
124 | { | 124 | { |
125 | if (omap_rev() > OMAP3430_REV_ES1_0) | 125 | omap_mux_init_gpio(149, OMAP_PIN_INPUT); |
126 | board_smc91x_data.gpio_irq = 6; | ||
127 | else | ||
128 | board_smc91x_data.gpio_irq = 29; | ||
129 | |||
130 | gpmc_smc91x_init(&board_smc91x_data); | 126 | gpmc_smc91x_init(&board_smc91x_data); |
131 | } | 127 | } |
132 | 128 | ||
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 9b7e3545f325..7951eefe1a0e 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c | |||
@@ -390,7 +390,9 @@ static inline int gpio_valid(int gpio) | |||
390 | return 0; | 390 | return 0; |
391 | if (cpu_is_omap7xx() && gpio < 192) | 391 | if (cpu_is_omap7xx() && gpio < 192) |
392 | return 0; | 392 | return 0; |
393 | if (cpu_is_omap24xx() && gpio < 128) | 393 | if (cpu_is_omap2420() && gpio < 128) |
394 | return 0; | ||
395 | if (cpu_is_omap2430() && gpio < 160) | ||
394 | return 0; | 396 | return 0; |
395 | if ((cpu_is_omap34xx() || cpu_is_omap44xx()) && gpio < 192) | 397 | if ((cpu_is_omap34xx() || cpu_is_omap44xx()) && gpio < 192) |
396 | return 0; | 398 | return 0; |