Commit 193e68be authored by Jonathan McDowell's avatar Jonathan McDowell Committed by Tony Lindgren

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: default avatarJonathan McDowell <noodles@earth.li>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 75a1d10e
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment