parisc: remove __ioremap
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Aug 2019 16:01:38 +0000 (19:01 +0300)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 16:19:49 +0000 (17:19 +0100)
__ioremap is always called with the _PAGE_NO_CACHE, so fold the whole
thing and rename it to ioremap.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/io.h
arch/parisc/mm/ioremap.c

index 93d37010b375c7441953cfc69ada30f1eb40979e..46212b52c23e312a483a3ada6a517a4d4f0e9f4e 100644 (file)
@@ -127,16 +127,7 @@ static inline void gsc_writeq(unsigned long long val, unsigned long addr)
 /*
  * The standard PCI ioremap interfaces
  */
-
-extern void __iomem * __ioremap(unsigned long offset, unsigned long size, unsigned long flags);
-
-/* Most machines react poorly to I/O-space being cacheable... Instead let's
- * define ioremap() in terms of ioremap_nocache().
- */
-static inline void __iomem * ioremap(unsigned long offset, unsigned long size)
-{
-       return __ioremap(offset, size, _PAGE_NO_CACHE);
-}
+void __iomem *ioremap(unsigned long offset, unsigned long size);
 #define ioremap_nocache(off, sz)       ioremap((off), (sz))
 #define ioremap_wc                     ioremap_nocache
 #define ioremap_uc                     ioremap_nocache
index f29f682352f017fd2c55dd0ba34df9ac82a8c0c5..6e7c005aa09b94ae7e85d70d366bbdd06f45f16a 100644 (file)
@@ -25,7 +25,7 @@
  * have to convert them into an offset in a page-aligned mapping, but the
  * caller shouldn't need to know that small detail.
  */
-void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags)
+void __iomem *ioremap(unsigned long phys_addr, unsigned long size)
 {
        void __iomem *addr;
        struct vm_struct *area;
@@ -36,10 +36,8 @@ void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned l
        unsigned long end = phys_addr + size - 1;
        /* Support EISA addresses */
        if ((phys_addr >= 0x00080000 && end < 0x000fffff) ||
-           (phys_addr >= 0x00500000 && end < 0x03bfffff)) {
+           (phys_addr >= 0x00500000 && end < 0x03bfffff))
                phys_addr |= F_EXTEND(0xfc000000);
-               flags |= _PAGE_NO_CACHE;
-       }
 #endif
 
        /* Don't allow wraparound or zero size */
@@ -65,7 +63,7 @@ void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned l
        }
 
        pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY |
-                         _PAGE_ACCESSED | flags);
+                         _PAGE_ACCESSED | _PAGE_NO_CACHE);
 
        /*
         * Mappings have to be page-aligned
@@ -90,7 +88,7 @@ void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned l
 
        return (void __iomem *) (offset + (char __iomem *)addr);
 }
-EXPORT_SYMBOL(__ioremap);
+EXPORT_SYMBOL(ioremap);
 
 void iounmap(const volatile void __iomem *io_addr)
 {