public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* ARM: OMAP: Fix OMAP1 compilation after MPUIO check change.
@ 2006-08-09  9:25 Jonathan McDowell
  2006-08-09 23:46 ` Mark Howell
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan McDowell @ 2006-08-09  9:25 UTC (permalink / raw)
  To: linux-omap-open-source

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>

-----
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c
index d5221b2..b27ba0e 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;
 	}
-----

J.

-- 
noodles is not a sign of poor table manners

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-08-11  9:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-09  9:25 ARM: OMAP: Fix OMAP1 compilation after MPUIO check change Jonathan McDowell
2006-08-09 23:46 ` Mark Howell
2006-08-11  9:54   ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox