]> Git Repo - linux.git/commitdiff
ARM: pxa: align NR_BUILTIN_GPIO with GPIO interrupt number
authorHaojian Zhuang <[email protected]>
Fri, 8 Apr 2011 12:15:42 +0000 (20:15 +0800)
committerEric Miao <[email protected]>
Tue, 12 Apr 2011 15:25:54 +0000 (23:25 +0800)
Avoid to mismatch between NR_BUILTIN_GPIO and GPIO interrupt number

Signed-off-by: Haojian Zhuang <[email protected]>
Signed-off-by: Eric Miao <[email protected]>
arch/arm/mach-pxa/include/mach/gpio.h

index b024a8b374394ac2731596ba39bba462309f04a6..48ef925ffb3ba6a43c6422d531ea2a8986067bea 100644 (file)
@@ -99,7 +99,7 @@
 #define GAFR(x)                GPIO_REG(0x54 + (((x) & 0x70) >> 2))
 
 
-#define NR_BUILTIN_GPIO 128
+#define NR_BUILTIN_GPIO                PXA_GPIO_IRQ_NUM
 
 #define gpio_to_bank(gpio)     ((gpio) >> 5)
 #define gpio_to_irq(gpio)      IRQ_GPIO(gpio)
This page took 0.057304 seconds and 4 git commands to generate.