diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2005-09-29 01:09:02 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-29 17:46:26 +0200 |
commit | 2ad4f86b60b649fd7428265c08d73a3bd360c81b (patch) | |
tree | 827d9076685968dc03d4b59d9d419b3f4b188693 /include/asm-arm/arch-versatile/io.h | |
parent | [PATCH] cyblafb: portability fixes, sanitized work with pointers (diff) | |
download | linux-2ad4f86b60b649fd7428265c08d73a3bd360c81b.tar.xz linux-2ad4f86b60b649fd7428265c08d73a3bd360c81b.zip |
[PATCH] arm/versatile iomem annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-rw-r--r-- | include/asm-arm/arch-versatile/io.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-arm/arch-versatile/io.h b/include/asm-arm/arch-versatile/io.h index 9f895bf61494..47e904cf25c7 100644 --- a/include/asm-arm/arch-versatile/io.h +++ b/include/asm-arm/arch-versatile/io.h @@ -22,7 +22,11 @@ #define IO_SPACE_LIMIT 0xffffffff -#define __io(a) ((void __iomem *)(a)) +static inline void __iomem *__io(unsigned long addr) +{ + return (void __iomem *)addr; +} +#define __io(a) __io(a) #define __mem_pci(a) (a) #define __mem_isa(a) (a) |