unicore32: remove ioremap_cached
authorChristoph Hellwig <hch@lst.de>
Sun, 11 Aug 2019 12:03:29 +0000 (14:03 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 16:19:44 +0000 (17:19 +0100)
No users of ioremap_cached are left, remove it.

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

index c71aa4b95996d93a5ae34519bfa437f3183e45bb..4b460e01acfa8920fbcf1abd525fa2784392eb5c 100644 (file)
 #include <asm-generic/io.h>
 
 /*
- * __uc32_ioremap and __uc32_ioremap_cached takes CPU physical address.
+ * __uc32_ioremap takes CPU physical address.
  */
 extern void __iomem *__uc32_ioremap(unsigned long, size_t);
-extern void __iomem *__uc32_ioremap_cached(unsigned long, size_t);
 extern void __uc32_iounmap(volatile void __iomem *addr);
 
 /*
@@ -32,7 +31,6 @@ extern void __uc32_iounmap(volatile void __iomem *addr);
  *
  */
 #define ioremap(cookie, size)          __uc32_ioremap(cookie, size)
-#define ioremap_cached(cookie, size)   __uc32_ioremap_cached(cookie, size)
 #define ioremap_nocache(cookie, size)  __uc32_ioremap(cookie, size)
 #define iounmap(cookie)                        __uc32_iounmap(cookie)
 
index cf6d656f240c621bf37bbceca46a0fce43fc72b2..46a64bd6156a41a8d6726c9d3095d495c55e8cae 100644 (file)
@@ -220,14 +220,6 @@ __uc32_ioremap(unsigned long phys_addr, size_t size)
 }
 EXPORT_SYMBOL(__uc32_ioremap);
 
-void __iomem *
-__uc32_ioremap_cached(unsigned long phys_addr, size_t size)
-{
-       return __uc32_ioremap_caller(phys_addr, size, MT_DEVICE_CACHED,
-                       __builtin_return_address(0));
-}
-EXPORT_SYMBOL(__uc32_ioremap_cached);
-
 void __uc32_iounmap(volatile void __iomem *io_addr)
 {
        void *addr = (void *)(PAGE_MASK & (unsigned long)io_addr);