Skip to content

Commit

Permalink
ARM: mmp: 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 a0a4dcb commit 83fd6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-mmp/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define BANK_OFF(n) (((n) < 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2))
#define GPIO_REG(x) (*((volatile u32 *)(GPIO_REGS_VIRT + (x))))

#define NR_BUILTIN_GPIO (192)
#define NR_BUILTIN_GPIO IRQ_GPIO_NUM

#define gpio_to_bank(gpio) ((gpio) >> 5)
#define gpio_to_irq(gpio) (IRQ_GPIO_START + (gpio))
Expand Down

0 comments on commit 83fd6c6

Please sign in to comment.