diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2012-04-15 14:37:39 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2012-04-22 14:16:50 -0400 |
commit | f5db9c6a3dd94033a113a6bd9ccce9f8c28c70b1 (patch) | |
tree | c4001c7ed89f43b62f841f576663d40c3c85bcfb /arch/m68k/include | |
parent | b637a6b16731d806ae2c8b9619a5619a2f283f15 (diff) |
m68k: Make sure {read,write}s[bwl]() are always defined
drivers/usb/musb/musb_io.h provides default implementations for
{read,write}s[bwl]() on most platforms, some of which will conflict soon
with platform-specific counterparts on m68k.
To avoid having to add more platform-specific checks to musb_io.h later,
make sure {read,write}s[bwl]() are always defined on m68k, and disable the
default implementations in musb_io.h on m68k, like is already done for
several other architectures.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'arch/m68k/include')
-rw-r--r-- | arch/m68k/include/asm/io_mm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_mm.h index 0fb3468000e7..fa4324bcf566 100644 --- a/arch/m68k/include/asm/io_mm.h +++ b/arch/m68k/include/asm/io_mm.h | |||
@@ -278,6 +278,13 @@ static inline void isa_delay(void) | |||
278 | #define readl(addr) in_le32(addr) | 278 | #define readl(addr) in_le32(addr) |
279 | #define writel(val,addr) out_le32((addr),(val)) | 279 | #define writel(val,addr) out_le32((addr),(val)) |
280 | 280 | ||
281 | #define readsb(port, buf, nr) raw_insb((port), (u8 *)(buf), (nr)) | ||
282 | #define readsw(port, buf, nr) raw_insw((port), (u16 *)(buf), (nr)) | ||
283 | #define readsl(port, buf, nr) raw_insl((port), (u32 *)(buf), (nr)) | ||
284 | #define writesb(port, buf, nr) raw_outsb((port), (u8 *)(buf), (nr)) | ||
285 | #define writesw(port, buf, nr) raw_outsw((port), (u16 *)(buf), (nr)) | ||
286 | #define writesl(port, buf, nr) raw_outsl((port), (u32 *)(buf), (nr)) | ||
287 | |||
281 | #define mmiowb() | 288 | #define mmiowb() |
282 | 289 | ||
283 | static inline void __iomem *ioremap(unsigned long physaddr, unsigned long size) | 290 | static inline void __iomem *ioremap(unsigned long physaddr, unsigned long size) |