From: Haojian Zhuang Date: Fri, 8 Apr 2011 12:15:42 +0000 (+0800) Subject: ARM: pxa: align NR_BUILTIN_GPIO with GPIO interrupt number X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a0a4dcbca73a418477f439e812193e2591b46751;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git ARM: pxa: align NR_BUILTIN_GPIO with GPIO interrupt number Avoid to mismatch between NR_BUILTIN_GPIO and GPIO interrupt number Signed-off-by: Haojian Zhuang Signed-off-by: Eric Miao --- diff --git a/arch/arm/mach-pxa/include/mach/gpio.h b/arch/arm/mach-pxa/include/mach/gpio.h index b024a8b3743..48ef925ffb3 100644 --- a/arch/arm/mach-pxa/include/mach/gpio.h +++ b/arch/arm/mach-pxa/include/mach/gpio.h @@ -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)