diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-12-14 00:55:45 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-12-14 00:55:45 -0500 |
commit | 0eb37e26ed332b2a96630cf7f7ebe9fddb41cc3c (patch) | |
tree | f429faef9832d6d7fac421df8c11b61872c6ee6f /arch/sh | |
parent | bf3cdeda901c7f42de3cddc8c5aa19f6b8d8f9df (diff) |
sh: Stub in P3 ioremap support for nommu parts.
p3_ioremap() references __ioremap() which is presently undefined on
nommu. This provides a trivial stub to fix the build up.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/include/asm/io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h index 988c1be58e51..026dd659a640 100644 --- a/arch/sh/include/asm/io.h +++ b/arch/sh/include/asm/io.h | |||
@@ -277,6 +277,7 @@ __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags) | |||
277 | return __ioremap(offset, size, flags); | 277 | return __ioremap(offset, size, flags); |
278 | } | 278 | } |
279 | #else | 279 | #else |
280 | #define __ioremap(offset, size, flags) ((void __iomem *)(offset)) | ||
280 | #define __ioremap_mode(offset, size, flags) ((void __iomem *)(offset)) | 281 | #define __ioremap_mode(offset, size, flags) ((void __iomem *)(offset)) |
281 | #define __iounmap(addr) do { } while (0) | 282 | #define __iounmap(addr) do { } while (0) |
282 | #endif /* CONFIG_MMU */ | 283 | #endif /* CONFIG_MMU */ |