]> err.no Git - linux-2.6/commitdiff
ARM: OMAP: Fix OMAP1 compilation after MPUIO check change
authorJonathan McDowell <noodles@earth.li>
Mon, 25 Sep 2006 09:41:30 +0000 (12:41 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 25 Sep 2006 09:41:30 +0000 (12:41 +0300)
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>
arch/arm/plat-omap/gpio.c

index d5221b2d4599ef8d0d6b013dc1ee28afd9547454..b27ba0ee00fbb82cf774822a77787576785058c3 100644 (file)
@@ -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;
        }