Skip to content

Commit

Permalink
ARM: OMAP: Fix OMAP1 compilation after MPUIO check change
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonathan McDowell authored and Tony Lindgren committed Sep 25, 2006
1 parent 75a1d10 commit 193e68b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-omap/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 193e68b

Please sign in to comment.