hexagon: clean up ioremap
authorChristoph Hellwig <hch@lst.de>
Mon, 12 Aug 2019 21:27:12 +0000 (23:27 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 16:19:49 +0000 (17:19 +0100)
Use ioremap as the main implemented function, and defined
ioremap_nocache to it as a deprecated alias.

Signed-off-by: Christoph Hellwig <hch@lst.de>
arch/hexagon/include/asm/io.h
arch/hexagon/kernel/hexagon_ksyms.c
arch/hexagon/mm/ioremap.c

index ba1a444d55b309d06a5bcbbca30db49f685411d4..89537dc1cf97a709bb9f6684ff50486430f445f0 100644 (file)
@@ -171,16 +171,9 @@ static inline void writel(u32 data, volatile void __iomem *addr)
 #define writew_relaxed __raw_writew
 #define writel_relaxed __raw_writel
 
-/*
- * Need an mtype somewhere in here, for cache type deals?
- * This is probably too long for an inline.
- */
-void __iomem *ioremap_nocache(unsigned long phys_addr, unsigned long size);
+void __iomem *ioremap(unsigned long phys_addr, unsigned long size);
+#define ioremap_nocache ioremap
 
-static inline void __iomem *ioremap(unsigned long phys_addr, unsigned long size)
-{
-       return ioremap_nocache(phys_addr, size);
-}
 
 static inline void iounmap(volatile void __iomem *addr)
 {
index cf8974beb500669a9b3a86ed4df227eecde7a1ec..b3dbb472572eed9b36639ef3f4c488b6e9f45e28 100644 (file)
@@ -20,7 +20,7 @@ EXPORT_SYMBOL(__vmgetie);
 EXPORT_SYMBOL(__vmsetie);
 EXPORT_SYMBOL(__vmyield);
 EXPORT_SYMBOL(empty_zero_page);
-EXPORT_SYMBOL(ioremap_nocache);
+EXPORT_SYMBOL(ioremap);
 EXPORT_SYMBOL(memcpy);
 EXPORT_SYMBOL(memset);
 
index 77d8e1e69e9b9f765546056629b17de7b444e8a7..b103d83b5fbb20c744adec66af64163ab8958439 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/vmalloc.h>
 #include <linux/mm.h>
 
-void __iomem *ioremap_nocache(unsigned long phys_addr, unsigned long size)
+void __iomem *ioremap(unsigned long phys_addr, unsigned long size)
 {
        unsigned long last_addr, addr;
        unsigned long offset = phys_addr & ~PAGE_MASK;