summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/io.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-18 21:20:13 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-01-18 21:20:13 +0900
commitedf711b66f2a8a9629aa253ad8b3a5a03b5d7af5 (patch)
tree8b752b135d9cc8916c696a2e81312083b2b8d910 /arch/sh/include/asm/io.h
parentd9b9487af79955a8e8fcddc963f56697e020cfed (diff)
downloadop-kernel-dev-edf711b66f2a8a9629aa253ad8b3a5a03b5d7af5.zip
op-kernel-dev-edf711b66f2a8a9629aa253ad8b3a5a03b5d7af5.tar.gz
sh: Fixup the IOREMAP_FIXED=n build.
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>
Diffstat (limited to 'arch/sh/include/asm/io.h')
-rw-r--r--arch/sh/include/asm/io.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h
index bee5965..9aa9438 100644
--- a/arch/sh/include/asm/io.h
+++ b/arch/sh/include/asm/io.h
@@ -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 *
OpenPOWER on IntegriCloud