From: Jonathan McDowell Date: Fri, 11 Aug 2006 09:54:04 +0000 (+0300) Subject: [PATCH] ARM: OMAP: Fix OMAP1 compilation after MPUIO check change X-Git-Tag: v2.6.18-omap1~110 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e3dc875107c6fafd8af7b160c77739327cc33ca2;p=linux-2.6-omap-h63xx.git [PATCH] 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 Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index d5221b2d459..b27ba0ee00f 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) return -1; #ifndef CONFIG_ARCH_OMAP24XX if (OMAP_GPIO_IS_MPUIO(gpio)) { - if (gpio >= MAX_GPIO_LINES + 16) + if (gpio >= OMAP_MAX_GPIO_LINES + 16) return -1; return 0; }