aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/m68k/include/asm/io_mm.h2
-rw-r--r--arch/m68k/include/asm/kmap.h6
2 files changed, 5 insertions, 3 deletions
diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_mm.h
index fe485f4f5fac..7e518303786c 100644
--- a/arch/m68k/include/asm/io_mm.h
+++ b/arch/m68k/include/asm/io_mm.h
@@ -21,8 +21,6 @@
21 21
22#ifdef __KERNEL__ 22#ifdef __KERNEL__
23 23
24#define ARCH_HAS_IOREMAP_WT
25
26#include <linux/compiler.h> 24#include <linux/compiler.h>
27#include <asm/raw_io.h> 25#include <asm/raw_io.h>
28#include <asm/virtconvert.h> 26#include <asm/virtconvert.h>
diff --git a/arch/m68k/include/asm/kmap.h b/arch/m68k/include/asm/kmap.h
index 84b8333db8ad..608e12f058a7 100644
--- a/arch/m68k/include/asm/kmap.h
+++ b/arch/m68k/include/asm/kmap.h
@@ -4,6 +4,8 @@
4 4
5#ifdef CONFIG_MMU 5#ifdef CONFIG_MMU
6 6
7#define ARCH_HAS_IOREMAP_WT
8
7/* Values for nocacheflag and cmode */ 9/* Values for nocacheflag and cmode */
8#define IOMAP_FULL_CACHING 0 10#define IOMAP_FULL_CACHING 0
9#define IOMAP_NOCACHE_SER 1 11#define IOMAP_NOCACHE_SER 1
@@ -16,6 +18,7 @@
16 */ 18 */
17extern void __iomem *__ioremap(unsigned long physaddr, unsigned long size, 19extern void __iomem *__ioremap(unsigned long physaddr, unsigned long size,
18 int cacheflag); 20 int cacheflag);
21#define iounmap iounmap
19extern void iounmap(void __iomem *addr); 22extern void iounmap(void __iomem *addr);
20extern void __iounmap(void *addr, unsigned long size); 23extern void __iounmap(void *addr, unsigned long size);
21 24
@@ -33,13 +36,14 @@ static inline void __iomem *ioremap_nocache(unsigned long physaddr,
33} 36}
34 37
35#define ioremap_uc ioremap_nocache 38#define ioremap_uc ioremap_nocache
39#define ioremap_wt ioremap_wt
36static inline void __iomem *ioremap_wt(unsigned long physaddr, 40static inline void __iomem *ioremap_wt(unsigned long physaddr,
37 unsigned long size) 41 unsigned long size)
38{ 42{
39 return __ioremap(physaddr, size, IOMAP_WRITETHROUGH); 43 return __ioremap(physaddr, size, IOMAP_WRITETHROUGH);
40} 44}
41 45
42#define ioremap_fillcache ioremap_fullcache 46#define ioremap_fullcache ioremap_fullcache
43static inline void __iomem *ioremap_fullcache(unsigned long physaddr, 47static inline void __iomem *ioremap_fullcache(unsigned long physaddr,
44 unsigned long size) 48 unsigned long size)
45{ 49{