]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
xtensa: clean up ioremap
authorChristoph Hellwig <hch@lst.de>
Mon, 12 Aug 2019 21:39:23 +0000 (23:39 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 16:19:50 +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/xtensa/include/asm/io.h

index 988e08530a5c77aeee213a80d015b33e66b95e08..441fb56926a77a21d800a9db2119998239991cea 100644 (file)
@@ -32,8 +32,7 @@ void xtensa_iounmap(volatile void __iomem *addr);
 /*
  * Return the virtual address for the specified bus memory.
  */
-static inline void __iomem *ioremap_nocache(unsigned long offset,
-               unsigned long size)
+static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
 {
        if (offset >= XCHAL_KIO_PADDR
            && offset - XCHAL_KIO_PADDR < XCHAL_KIO_SIZE)
@@ -52,15 +51,10 @@ static inline void __iomem *ioremap_cache(unsigned long offset,
                return xtensa_ioremap_cache(offset, size);
 }
 #define ioremap_cache ioremap_cache
-#define ioremap_nocache ioremap_nocache
-
-#define ioremap_wc ioremap_nocache
-#define ioremap_wt ioremap_nocache
 
-static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
-{
-       return ioremap_nocache(offset, size);
-}
+#define ioremap_nocache ioremap
+#define ioremap_wc ioremap
+#define ioremap_wt ioremap
 
 static inline void iounmap(volatile void __iomem *addr)
 {