summary refs log tree commit diff
path: root/arch/csky/include/asm/io.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-08-13 11:41:57 +0200
committerChristoph Hellwig <hch@lst.de>2019-11-12 11:37:52 +0100
commit0055f67b596c3a8963192a42e25797b0e7fc0e92 (patch)
treeb1251af84d567baad073d1e4e79196cc6493fe84 /arch/csky/include/asm/io.h
parent1246b8146c550641b3217eef65792685ca2dcdc5 (diff)
downloadlinux-0055f67b596c3a8963192a42e25797b0e7fc0e92.tar.gz
csky: use generic ioremap
Use the generic ioremap_prot and iounmap helpers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Guo Ren <guoren@kernel.org>
Diffstat (limited to 'arch/csky/include/asm/io.h')
-rw-r--r--arch/csky/include/asm/io.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/csky/include/asm/io.h b/arch/csky/include/asm/io.h
index f572605d5ad5..332f51bc68fb 100644
--- a/arch/csky/include/asm/io.h
+++ b/arch/csky/include/asm/io.h
@@ -36,11 +36,9 @@
 /*
  * I/O memory mapping functions.
  */
-extern void __iomem *__ioremap(phys_addr_t addr, size_t size, pgprot_t prot);
-extern void iounmap(void *addr);
-
-#define ioremap(addr, size)		__ioremap((addr), (size), pgprot_noncached(PAGE_KERNEL))
-#define ioremap_wc(addr, size)		__ioremap((addr), (size), pgprot_writecombine(PAGE_KERNEL))
+#define ioremap_wc(addr, size) \
+	ioremap_prot((addr), (size), \
+		(_PAGE_IOREMAP & ~_CACHE_MASK) | _CACHE_UNCACHED)
 
 #include <asm-generic/io.h>