[PATCH 5/7] ARM: pxa: align NR_BUILTIN_GPIO with GPIO interrupt number

Eric Miao eric.y.miao at gmail.com
Tue Apr 12 11:26:05 EDT 2011


On Fri, Apr 8, 2011 at 8:15 PM, Haojian Zhuang
<haojian.zhuang at marvell.com> wrote:
> Avoid to mismatch between NR_BUILTIN_GPIO and GPIO interrupt number
>
> Signed-off-by: Haojian Zhuang <haojian.zhuang at marvell.com>

Applied to 'fix'.

> ---
>  arch/arm/mach-pxa/include/mach/gpio.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-pxa/include/mach/gpio.h b/arch/arm/mach-pxa/include/mach/gpio.h
> index b024a8b..48ef925 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)
> --
> 1.5.6.5
>
>



More information about the linux-arm-kernel mailing list