aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-12-14 14:55:45 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-12-14 14:55:45 +0900
commit0eb37e26ed332b2a96630cf7f7ebe9fddb41cc3c (patch)
treef429faef9832d6d7fac421df8c11b61872c6ee6f /arch/sh
parentbf3cdeda901c7f42de3cddc8c5aa19f6b8d8f9df (diff)
downloadkernel_samsung_tuna-0eb37e26ed332b2a96630cf7f7ebe9fddb41cc3c.zip
kernel_samsung_tuna-0eb37e26ed332b2a96630cf7f7ebe9fddb41cc3c.tar.gz
kernel_samsung_tuna-0eb37e26ed332b2a96630cf7f7ebe9fddb41cc3c.tar.bz2
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h
index 988c1be..026dd65 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)
return __ioremap(offset, size, flags);
}
#else
+#define __ioremap(offset, size, flags) ((void __iomem *)(offset))
#define __ioremap_mode(offset, size, flags) ((void __iomem *)(offset))
#define __iounmap(addr) do { } while (0)
#endif /* CONFIG_MMU */