diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-11-30 12:45:54 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-11-30 12:45:54 +0100 |
commit | 0560cf5aa51216b06874333a2fa26ca034d97bdb (patch) | |
tree | 4feb666ca357b708ec1f13c7bc52284018e107c8 /arch/arm/mach-versatile | |
parent | [ARM] integrator: parenthesize __virt_to_bus/__bus_to_virt argument (diff) | |
download | linux-0560cf5aa51216b06874333a2fa26ca034d97bdb.tar.xz linux-0560cf5aa51216b06874333a2fa26ca034d97bdb.zip |
[ARM] Add a common typesafe __io implementation
As Al did for Versatile in 2ad4f86b60b649fd7428265c08d73a3bd360c81b,
add a typesafe __io implementation for platforms to use. Convert
platforms to use this new simple typesafe implementation.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-versatile')
-rw-r--r-- | arch/arm/mach-versatile/include/mach/io.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-versatile/include/mach/io.h b/arch/arm/mach-versatile/include/mach/io.h index c0b9dd1d0257..f067c14c7182 100644 --- a/arch/arm/mach-versatile/include/mach/io.h +++ b/arch/arm/mach-versatile/include/mach/io.h @@ -22,11 +22,7 @@ #define IO_SPACE_LIMIT 0xffffffff -static inline void __iomem *__io(unsigned long addr) -{ - return (void __iomem *)addr; -} -#define __io(a) __io(a) -#define __mem_pci(a) (a) +#define __io(a) __typesafe_io(a) +#define __mem_pci(a) (a) #endif |