Commit c6b56949 authored by Lennert Buytenhek's avatar Lennert Buytenhek Committed by Russell King

[PATCH] ARM: 2740/1: ixp2000 align{b,w} need to parenthesize their arguments

Patch from Lennert Buytenhek

Two macros that are used on the ixp2000 to fixup byte lane enables
for I/O space accesses, align{b,w}, use their arguments without
parenthesizing them.
Signed-off-by: default avatarLennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 59a49e38
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
* since that isn't available on the A? revisions we just keep doing * since that isn't available on the A? revisions we just keep doing
* things manually. * things manually.
*/ */
#define alignb(addr) (void __iomem *)((unsigned long)addr ^ 3) #define alignb(addr) (void __iomem *)((unsigned long)(addr) ^ 3)
#define alignw(addr) (void __iomem *)((unsigned long)addr ^ 2) #define alignw(addr) (void __iomem *)((unsigned long)(addr) ^ 2)
#define outb(v,p) __raw_writeb((v),alignb(___io(p))) #define outb(v,p) __raw_writeb((v),alignb(___io(p)))
#define outw(v,p) __raw_writew((v),alignw(___io(p))) #define outw(v,p) __raw_writew((v),alignw(___io(p)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment