Переглянути джерело

[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>
Eric Miao 16 роки тому
батько
коміт
53f5649b21
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      arch/arm/mach-pxa/include/mach/gpio.h

+ 1 - 1
arch/arm/mach-pxa/include/mach/gpio.h

@@ -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 */