asm-generic: don't provide __ioremap
authorChristoph Hellwig <hch@lst.de>
Sat, 17 Aug 2019 07:32:41 +0000 (09:32 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 30 Aug 2019 19:46:27 +0000 (21:46 +0200)
__ioremap is not a kernel API, but used for helpers with differing
semantics in arch code.  We should not provide it in as-generic.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Paul Walmsley <paul.walmsley@sifive.com>
Tested-by: Paul Walmsley <paul.walmsley@sifive.com> # rv32, rv64 boot
Acked-by: Paul Walmsley <paul.walmsley@sifive.com> # arch/riscv
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/io.h

index b83e2802c969a0e82d1df6e303aa3acf53f799df..d02806513670c8cca693cff296ee522264700020 100644 (file)
@@ -963,15 +963,6 @@ static inline void __iomem *ioremap(phys_addr_t offset, size_t size)
 }
 #endif
 
-#ifndef __ioremap
-#define __ioremap __ioremap
-static inline void __iomem *__ioremap(phys_addr_t offset, size_t size,
-                                     unsigned long flags)
-{
-       return ioremap(offset, size);
-}
-#endif
-
 #ifndef iounmap
 #define iounmap iounmap