Skip to content

Commit

Permalink
[ARM] pxa: fix typo in BANK_OFF() macro in gpio.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Miao committed Mar 13, 2009
1 parent bff22c9 commit 53f5649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 53f5649

Please sign in to comment.