diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-01-10 22:36:37 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-10 22:36:37 -0500 |
commit | 0d6ae8fa945aba732edadce1ead9929520d61b99 (patch) | |
tree | b7105a2549eaea6c0fee4026e0f19436dba98b1c /arch | |
parent | 3bd75e5e0c5b58636aeadd34890114bcb988777e (diff) |
sh: Kill off deprecated ctrl_in/out I/O routines.
Now that all of the in-tree drivers have been converted to portable I/O
accessors, we can kill off the legacy ones with extreme prejudice.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/include/asm/io.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h index 89ab2c57a4c2..70c1186b5088 100644 --- a/arch/sh/include/asm/io.h +++ b/arch/sh/include/asm/io.h | |||
@@ -11,11 +11,6 @@ | |||
11 | * | 11 | * |
12 | * While read{b,w,l,q} and write{b,w,l,q} contain memory barriers | 12 | * While read{b,w,l,q} and write{b,w,l,q} contain memory barriers |
13 | * automatically, there are also __raw versions, which do not. | 13 | * automatically, there are also __raw versions, which do not. |
14 | * | ||
15 | * Historically, we have also had ctrl_in{b,w,l,q}/ctrl_out{b,w,l,q} for | ||
16 | * SuperH specific I/O (raw I/O to on-chip CPU peripherals). In practice | ||
17 | * these have the same semantics as the __raw variants, and as such, all | ||
18 | * new code should be using the __raw versions. | ||
19 | */ | 14 | */ |
20 | #include <linux/errno.h> | 15 | #include <linux/errno.h> |
21 | #include <asm/cache.h> | 16 | #include <asm/cache.h> |
@@ -231,52 +226,6 @@ __BUILD_IOPORT_STRING(q, u64) | |||
231 | 226 | ||
232 | #endif | 227 | #endif |
233 | 228 | ||
234 | /* | ||
235 | * Legacy SuperH on-chip I/O functions | ||
236 | * | ||
237 | * These are all deprecated, all new (and especially cross-platform) code | ||
238 | * should be using the __raw_xxx() routines directly. | ||
239 | */ | ||
240 | static inline u8 __deprecated ctrl_inb(unsigned long addr) | ||
241 | { | ||
242 | return __raw_readb(addr); | ||
243 | } | ||
244 | |||
245 | static inline u16 __deprecated ctrl_inw(unsigned long addr) | ||
246 | { | ||
247 | return __raw_readw(addr); | ||
248 | } | ||
249 | |||
250 | static inline u32 __deprecated ctrl_inl(unsigned long addr) | ||
251 | { | ||
252 | return __raw_readl(addr); | ||
253 | } | ||
254 | |||
255 | static inline u64 __deprecated ctrl_inq(unsigned long addr) | ||
256 | { | ||
257 | return __raw_readq(addr); | ||
258 | } | ||
259 | |||
260 | static inline void __deprecated ctrl_outb(u8 v, unsigned long addr) | ||
261 | { | ||
262 | __raw_writeb(v, addr); | ||
263 | } | ||
264 | |||
265 | static inline void __deprecated ctrl_outw(u16 v, unsigned long addr) | ||
266 | { | ||
267 | __raw_writew(v, addr); | ||
268 | } | ||
269 | |||
270 | static inline void __deprecated ctrl_outl(u32 v, unsigned long addr) | ||
271 | { | ||
272 | __raw_writel(v, addr); | ||
273 | } | ||
274 | |||
275 | static inline void __deprecated ctrl_outq(u64 v, unsigned long addr) | ||
276 | { | ||
277 | __raw_writeq(v, addr); | ||
278 | } | ||
279 | |||
280 | #define IO_SPACE_LIMIT 0xffffffff | 229 | #define IO_SPACE_LIMIT 0xffffffff |
281 | 230 | ||
282 | /* synco on SH-4A, otherwise a nop */ | 231 | /* synco on SH-4A, otherwise a nop */ |