Răsfoiți Sursa

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>
Paul Mundt 15 ani în urmă
părinte
comite
edf711b66f
1 a modificat fișierele cu 9 adăugiri și 0 ștergeri
  1. 9 0
      arch/sh/include/asm/io.h

+ 9 - 0
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 *