aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/generic.c')
-rw-r--r--arch/arm/mach-pxa/generic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c
index 1c5413fc6e74..eed95eaf58cd 100644
--- a/arch/arm/mach-pxa/generic.c
+++ b/arch/arm/mach-pxa/generic.c
@@ -71,6 +71,7 @@ EXPORT_SYMBOL(get_memclk_frequency_10khz);
71/* 71/*
72 * Handy function to set GPIO alternate functions 72 * Handy function to set GPIO alternate functions
73 */ 73 */
74int pxa_last_gpio;
74 75
75int pxa_gpio_mode(int gpio_mode) 76int pxa_gpio_mode(int gpio_mode)
76{ 77{
@@ -79,7 +80,7 @@ int pxa_gpio_mode(int gpio_mode)
79 int fn = (gpio_mode & GPIO_MD_MASK_FN) >> 8; 80 int fn = (gpio_mode & GPIO_MD_MASK_FN) >> 8;
80 int gafr; 81 int gafr;
81 82
82 if (gpio > PXA_LAST_GPIO) 83 if (gpio > pxa_last_gpio)
83 return -EINVAL; 84 return -EINVAL;
84 85
85 local_irq_save(flags); 86 local_irq_save(flags);