From: Paul Mundt Date: Mon, 14 Dec 2009 05:55:45 +0000 (+0900) Subject: sh: Stub in P3 ioremap support for nommu parts. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0eb37e26ed332b2a96630cf7f7ebe9fddb41cc3c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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) 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 */