Skip to content

Commit

Permalink
ARM: pxa: align NR_BUILTIN_GPIO with GPIO interrupt number
Browse files Browse the repository at this point in the history
Avoid to mismatch between NR_BUILTIN_GPIO and GPIO interrupt number

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
  • Loading branch information
Haojian Zhuang authored and Eric Miao committed Apr 12, 2011
1 parent 6932613 commit a0a4dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a0a4dcb

Please sign in to comment.