X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Farch-rpc%2Fio.h;h=24453c405a87f56effde8b12ec6ae0cf17616b2a;hb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;hp=f53c72c2042300897fee319bcf3fea829b5b3d08;hpb=e3f6fb6212a7102bdb56ba38fa1e98fe72950475;p=linux-2.6.git diff --git a/include/asm-arm/arch-rpc/io.h b/include/asm-arm/arch-rpc/io.h index f53c72c20..24453c405 100644 --- a/include/asm-arm/arch-rpc/io.h +++ b/include/asm-arm/arch-rpc/io.h @@ -128,9 +128,9 @@ static inline void __iomem *__ioaddr(unsigned int port) { void __iomem *ret; if (__PORT_PCIO(port)) - ret = (void __iomem *)PCIO_BASE; + ret = PCIO_BASE; else - ret = (void __iomem *)IO_BASE; + ret = IO_BASE; return ret + (port << 2); } @@ -230,8 +230,8 @@ DECLARE_IO(int,l,"") result; \ }) -#define __ioaddrc(port) \ - ((void __iomem *)(__PORT_PCIO((port)) ? PCIO_BASE : IO_BASE) + ((port) << 2)) +#define __ioaddrc(port) \ + ((__PORT_PCIO(port) ? PCIO_BASE : IO_BASE) + ((port) << 2)) #define inb(p) (__builtin_constant_p((p)) ? __inbc(p) : __inb(p)) #define inw(p) (__builtin_constant_p((p)) ? __inwc(p) : __inw(p))