diff options
author | Jonathan McDowell <noodles@earth.li> | 2006-09-25 05:41:30 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2006-09-25 05:41:30 -0400 |
commit | 193e68be335890a99879799bdcd06e18247c110a (patch) | |
tree | 793d6219a3550c4474ac05243dce07efd9c73870 /arch/arm/plat-omap/gpio.c | |
parent | 75a1d10e2f110380adaa9b993fd417537e2f85ba (diff) |
ARM: OMAP: Fix OMAP1 compilation after MPUIO check change
The recent MPUIO range change fix breaks compilation if
CONFIG_ARCH_OMAP24XX isn't defined; it should be OMAP_MAX_GPIO_LINES not
MAX_GPIO_LINES I believe. This one liner fixes it.
Signed-off-by: Jonathan McDowell <noodles@earth.li>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/gpio.c')
-rw-r--r-- | arch/arm/plat-omap/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index d5221b2d4599..b27ba0ee00fb 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c | |||
@@ -216,7 +216,7 @@ static inline int gpio_valid(int gpio) | |||
216 | return -1; | 216 | return -1; |
217 | #ifndef CONFIG_ARCH_OMAP24XX | 217 | #ifndef CONFIG_ARCH_OMAP24XX |
218 | if (OMAP_GPIO_IS_MPUIO(gpio)) { | 218 | if (OMAP_GPIO_IS_MPUIO(gpio)) { |
219 | if (gpio >= MAX_GPIO_LINES + 16) | 219 | if (gpio >= OMAP_MAX_GPIO_LINES + 16) |
220 | return -1; | 220 | return -1; |
221 | return 0; | 221 | return 0; |
222 | } | 222 | } |