Commit 50bbb05d authored by Russell King's avatar Russell King Committed by Russell King

[ARM] rpc: deprecate __ioaddr() and __ioaddrc() helpers

Now everything is converted to use MMIO accessors, these helpers
are no longer required.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent e95a1b65
...@@ -126,7 +126,7 @@ static inline unsigned sz __in##fnsuffix (unsigned int port) \ ...@@ -126,7 +126,7 @@ static inline unsigned sz __in##fnsuffix (unsigned int port) \
return (unsigned sz)value; \ return (unsigned sz)value; \
} }
static inline void __iomem *__ioaddr(unsigned int port) static inline void __iomem *__deprecated __ioaddr(unsigned int port)
{ {
void __iomem *ret; void __iomem *ret;
if (__PORT_PCIO(port)) if (__PORT_PCIO(port))
...@@ -232,8 +232,7 @@ DECLARE_IO(int,l,"") ...@@ -232,8 +232,7 @@ DECLARE_IO(int,l,"")
result; \ result; \
}) })
#define __ioaddrc(port) \ #define __ioaddrc(port) __ioaddr(port)
((__PORT_PCIO(port) ? PCIO_BASE : IO_BASE) + ((port) << 2))
#define inb(p) (__builtin_constant_p((p)) ? __inbc(p) : __inb(p)) #define inb(p) (__builtin_constant_p((p)) ? __inbc(p) : __inb(p))
#define inw(p) (__builtin_constant_p((p)) ? __inwc(p) : __inw(p)) #define inw(p) (__builtin_constant_p((p)) ? __inwc(p) : __inw(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