aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-08-13 08:11:46 +0200
committerChristoph Hellwig <hch@lst.de>2019-11-11 21:18:19 +0100
commit98c90e5ea34e98bdd4bcb67c48a0bdfd59bcd6cd (patch)
treed30d6eaa8530f6d7021fbfe5d035266d04e5afbb /arch/sh/include
parentnios2: remove __iounmap (diff)
downloadlinux-dev-98c90e5ea34e98bdd4bcb67c48a0bdfd59bcd6cd.tar.xz
linux-dev-98c90e5ea34e98bdd4bcb67c48a0bdfd59bcd6cd.zip
sh: remove __iounmap
No need to indirect iounmap for sh. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/sh/include')
-rw-r--r--arch/sh/include/asm/io.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h
index ac0561960c52..1495489225ac 100644
--- a/arch/sh/include/asm/io.h
+++ b/arch/sh/include/asm/io.h
@@ -267,7 +267,7 @@ unsigned long long poke_real_address_q(unsigned long long addr,
#ifdef CONFIG_MMU
void __iomem *__ioremap_caller(phys_addr_t offset, unsigned long size,
pgprot_t prot, void *caller);
-void __iounmap(void __iomem *addr);
+void iounmap(void __iomem *addr);
static inline void __iomem *
__ioremap(phys_addr_t offset, unsigned long size, pgprot_t prot)
@@ -328,7 +328,7 @@ __ioremap_mode(phys_addr_t offset, unsigned long size, pgprot_t prot)
#else
#define __ioremap(offset, size, prot) ((void __iomem *)(offset))
#define __ioremap_mode(offset, size, prot) ((void __iomem *)(offset))
-#define __iounmap(addr) do { } while (0)
+#define iounmap(addr) do { } while (0)
#endif /* CONFIG_MMU */
static inline void __iomem *ioremap(phys_addr_t offset, unsigned long size)
@@ -370,11 +370,6 @@ static inline int iounmap_fixed(void __iomem *addr) { return -EINVAL; }
#define ioremap_nocache ioremap
#define ioremap_uc ioremap
-static inline void iounmap(void __iomem *addr)
-{
- __iounmap(addr);
-}
-
/*
* Convert a physical pointer to a virtual kernel pointer for /dev/mem
* access