projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0a4dcb
)
ARM: mmp: align NR_BUILTIN_GPIO with gpio interrupt number
author
Haojian Zhuang
<haojian.zhuang@marvell.com>
Fri, 8 Apr 2011 12:15:43 +0000
(20:15 +0800)
committer
Eric Miao
<eric.y.miao@gmail.com>
Tue, 12 Apr 2011 15:26:39 +0000
(23:26 +0800)
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>
arch/arm/mach-mmp/include/mach/gpio.h
patch
|
blob
|
history
diff --git
a/arch/arm/mach-mmp/include/mach/gpio.h
b/arch/arm/mach-mmp/include/mach/gpio.h
index ee8b02ed8011dfa615603045a22c5a98956635e4..7bfb827f3fe36a8d71fc874b1a45e446be1d3bac 100644
(file)
--- a/
arch/arm/mach-mmp/include/mach/gpio.h
+++ b/
arch/arm/mach-mmp/include/mach/gpio.h
@@
-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))