]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] pxa: fix typo in BANK_OFF() macro in gpio.h
authorEric Miao <eric.miao@marvell.com>
Fri, 13 Mar 2009 02:50:17 +0000 (10:50 +0800)
committerEric Miao <eric.miao@marvell.com>
Fri, 13 Mar 2009 02:50:17 +0000 (10:50 +0800)
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>
arch/arm/mach-pxa/include/mach/gpio.h

index 406fa102cb4099152f1a7f30f74cb00535d56185..c72c89a2285e4582c8b587bcacefac01b0831e60 100644 (file)
@@ -30,7 +30,7 @@
 
 #define GPIO_REGS_VIRT io_p2v(0x40E00000)
 
-#define BANK_OFF(n)    (((n) > 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2))
+#define BANK_OFF(n)    (((n) < 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2))
 #define GPIO_REG(x)    (*(volatile u32 *)(GPIO_REGS_VIRT + (x)))
 
 /* GPIO Pin Level Registers */