From 3b8e285c21d12082a85a142ef73a1648d41cae46 Mon Sep 17 00:00:00 2001 From: Eric Miao Date: Wed, 7 Jan 2009 11:30:49 +0800 Subject: [ARM] pxa: move declaration of 'pxa_last_gpio' into Signed-off-by: Eric Miao --- arch/arm/mach-pxa/include/mach/gpio.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'arch/arm/mach-pxa/include') diff --git a/arch/arm/mach-pxa/include/mach/gpio.h b/arch/arm/mach-pxa/include/mach/gpio.h index be4900e..4049b23 100644 --- a/arch/arm/mach-pxa/include/mach/gpio.h +++ b/arch/arm/mach-pxa/include/mach/gpio.h @@ -100,8 +100,11 @@ /* NOTE: some PXAs have fewer on-chip GPIOs (like PXA255, with 85). - * Those cases currently cause holes in the GPIO number space. + * Those cases currently cause holes in the GPIO number space, the + * actual number of the last GPIO is recorded by 'pxa_last_gpio'. */ +extern int pxa_last_gpio; + #define NR_BUILTIN_GPIO 128 static inline int gpio_get_value(unsigned gpio) -- cgit v1.1