summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPranith Kumar <bobby.prani@gmail.com>2014-08-06 16:03:48 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-17 09:21:53 -0700
commitb39ff9dfd3ba34f08f4cfa8aaf1872aa2d0099d6 (patch)
tree072f80342beaff1522ef5830d82303af44c731ac /arch
parentcb963376a2b229d6aeced5595aff9ef5e262b4b5 (diff)
sh: fix build error by adding generic ioport_{map/unmap}()
commit e04aca4a769e16cf4f9b8a4bd3e761711640dc46 upstream. Fix build error as reported by Geert Uytterhoeven here: http://kisskb.ellerman.id.au/kisskb/buildresult/11607865/ The error happens when CONFIG_HAS_IOPORT_MAP=n because of which there are missing definitions of ioport_map/unmap(). Fix this build error by adding these prototypes. Signed-off-by: Pranith Kumar <bobby.prani@gmail.com> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/include/asm/io_noioport.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/sh/include/asm/io_noioport.h b/arch/sh/include/asm/io_noioport.h
index 4d48f1436a63..c727e6ddf69e 100644
--- a/arch/sh/include/asm/io_noioport.h
+++ b/arch/sh/include/asm/io_noioport.h
@@ -34,6 +34,17 @@ static inline void outl(unsigned int x, unsigned long port)
BUG();
}
+static inline void __iomem *ioport_map(unsigned long port, unsigned int size)
+{
+ BUG();
+ return NULL;
+}
+
+static inline void ioport_unmap(void __iomem *addr)
+{
+ BUG();
+}
+
#define inb_p(addr) inb(addr)
#define inw_p(addr) inw(addr)
#define inl_p(addr) inl(addr)