aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/include/asm/io.h')
-rw-r--r--arch/sh/include/asm/io.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h
index 0454f8d68059..ef217344afcb 100644
--- a/arch/sh/include/asm/io.h
+++ b/arch/sh/include/asm/io.h
@@ -228,12 +228,6 @@ void __iounmap(void __iomem *addr);
228unsigned long onchip_remap(unsigned long addr, unsigned long size, 228unsigned long onchip_remap(unsigned long addr, unsigned long size,
229 const char *name); 229 const char *name);
230extern void onchip_unmap(unsigned long vaddr); 230extern void onchip_unmap(unsigned long vaddr);
231#else
232#define __ioremap(offset, size, flags) ((void __iomem *)(offset))
233#define __iounmap(addr) do { } while (0)
234#define onchip_remap(addr, size, name) (addr)
235#define onchip_unmap(addr) do { } while (0)
236#endif /* CONFIG_MMU */
237 231
238static inline void __iomem * 232static inline void __iomem *
239__ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags) 233__ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags)
@@ -268,6 +262,12 @@ __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags)
268 262
269 return __ioremap(offset, size, flags); 263 return __ioremap(offset, size, flags);
270} 264}
265#else
266#define onchip_remap(addr, size, name) (addr)
267#define onchip_unmap(addr) do { } while (0)
268#define __ioremap_mode(offset, size, flags) ((void __iomem *)(offset))
269#define __iounmap(addr) do { } while (0)
270#endif /* CONFIG_MMU */
271 271
272#define ioremap(offset, size) \ 272#define ioremap(offset, size) \
273 __ioremap_mode((offset), (size), 0) 273 __ioremap_mode((offset), (size), 0)