diff options
author | Eric Miao <eric.miao@marvell.com> | 2009-03-12 22:50:17 -0400 |
---|---|---|
committer | Eric Miao <eric.miao@marvell.com> | 2009-03-12 22:50:17 -0400 |
commit | 53f5649b21a7c7b894d68ac4848eb01136fa64aa (patch) | |
tree | 497a8ec6843fccc32616a18443aef3264ecd747e /arch/arm/mach-pxa/include/mach/gpio.h | |
parent | bff22c9b85c911719a82b6e7cc8925dd84d278c7 (diff) |
[ARM] pxa: fix typo in BANK_OFF() macro in gpio.h
The typo was originally fixed by Mike Rapoport and missed. And is
later reported by Matthias Meier.
Signed-off-by: Matthias Meier <matthias.j.meier@gmx.net>
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm/mach-pxa/include/mach/gpio.h')
-rw-r--r-- | 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 406fa102cb40..c72c89a2285e 100644 --- a/arch/arm/mach-pxa/include/mach/gpio.h +++ b/arch/arm/mach-pxa/include/mach/gpio.h | |||
@@ -30,7 +30,7 @@ | |||
30 | 30 | ||
31 | #define GPIO_REGS_VIRT io_p2v(0x40E00000) | 31 | #define GPIO_REGS_VIRT io_p2v(0x40E00000) |
32 | 32 | ||
33 | #define BANK_OFF(n) (((n) > 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2)) | 33 | #define BANK_OFF(n) (((n) < 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2)) |
34 | #define GPIO_REG(x) (*(volatile u32 *)(GPIO_REGS_VIRT + (x))) | 34 | #define GPIO_REG(x) (*(volatile u32 *)(GPIO_REGS_VIRT + (x))) |
35 | 35 | ||
36 | /* GPIO Pin Level Registers */ | 36 | /* GPIO Pin Level Registers */ |