]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sh: Fixup the IOREMAP_FIXED=n build.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 18 Jan 2010 12:20:13 +0000 (21:20 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 18 Jan 2010 12:20:13 +0000 (21:20 +0900)
Presently the fixed ioremap API is only defined when CONFIG_IOREMAP_FIXED
is set. As we want to call in to it unconditionally, provide a stubbed
out interface.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/io.h

index bee5965e0a82a37022abf83cdff0c9519e802296..9aa9438c66c3c1dde7eb50ac418a16d214cd0131 100644 (file)
@@ -241,6 +241,15 @@ void __iounmap(void __iomem *addr);
 extern void __iomem *ioremap_fixed(resource_size_t, unsigned long, pgprot_t);
 extern void iounmap_fixed(void __iomem *);
 extern void ioremap_fixed_init(void);
+#else
+static inline void __iomem *
+ioremap_fixed(resource_size t phys_addr, unsigned long size, pgprot_t prot)
+{
+       BUG();
+}
+
+static inline void ioremap_fixed_init(void) { }
+static inline void iounmap_fixed(void __iomem *addr) { }
 #endif
 
 static inline void __iomem *