diff options
-rw-r--r-- | include/linux/io.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/io.h b/include/linux/io.h index 09d351236379..8423dd376514 100644 --- a/include/linux/io.h +++ b/include/linux/io.h | |||
@@ -27,8 +27,16 @@ struct device; | |||
27 | void __iowrite32_copy(void __iomem *to, const void *from, size_t count); | 27 | void __iowrite32_copy(void __iomem *to, const void *from, size_t count); |
28 | void __iowrite64_copy(void __iomem *to, const void *from, size_t count); | 28 | void __iowrite64_copy(void __iomem *to, const void *from, size_t count); |
29 | 29 | ||
30 | #ifdef CONFIG_MMU | ||
30 | int ioremap_page_range(unsigned long addr, unsigned long end, | 31 | int ioremap_page_range(unsigned long addr, unsigned long end, |
31 | unsigned long phys_addr, pgprot_t prot); | 32 | unsigned long phys_addr, pgprot_t prot); |
33 | #else | ||
34 | static inline int ioremap_page_range(unsigned long addr, unsigned long end, | ||
35 | unsigned long phys_addr, pgprot_t prot) | ||
36 | { | ||
37 | return 0; | ||
38 | } | ||
39 | #endif | ||
32 | 40 | ||
33 | /* | 41 | /* |
34 | * Managed iomap interface | 42 | * Managed iomap interface |