aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-14 14:18:50 +0200
committerRich Felker <dalias@libc.org>2020-08-14 22:05:15 -0400
commit3eef6b74d9fecf18b03db26584cc66928972a60b (patch)
tree63a4e73ad839325fee48ac3661e80393062581ee /arch/sh/include
parentsh: remove __KERNEL__ ifdefs from non-UAPI headers (diff)
downloadlinux-dev-3eef6b74d9fecf18b03db26584cc66928972a60b.tar.xz
linux-dev-3eef6b74d9fecf18b03db26584cc66928972a60b.zip
sh: move ioremap_fixed details out of <asm/io.h>
ioremap_fixed is an internal implementation detail and should not be exposed to drivers. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Rich Felker <dalias@libc.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r--arch/sh/include/asm/io.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h
index 1fd06ef6a194..357a7e0c86d6 100644
--- a/arch/sh/include/asm/io.h
+++ b/arch/sh/include/asm/io.h
@@ -346,22 +346,6 @@ ioremap_prot(phys_addr_t offset, unsigned long size, unsigned long flags)
}
#endif
-#ifdef CONFIG_IOREMAP_FIXED
-extern void __iomem *ioremap_fixed(phys_addr_t, unsigned long, pgprot_t);
-extern int iounmap_fixed(void __iomem *);
-extern void ioremap_fixed_init(void);
-#else
-static inline void __iomem *
-ioremap_fixed(phys_addr_t phys_addr, unsigned long size, pgprot_t prot)
-{
- BUG();
- return NULL;
-}
-
-static inline void ioremap_fixed_init(void) { }
-static inline int iounmap_fixed(void __iomem *addr) { return -EINVAL; }
-#endif
-
#define ioremap_uc ioremap
/*