From 862ef701e3b754dd000431965ff62bd5de136264 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Tue, 15 May 2007 01:41:02 -0700 Subject: [PATCH] --- yaml --- r: 56389 b: refs/heads/master c: 218f0aaee8a6b0e5772b95b154dea5b7701b33aa h: refs/heads/master i: 56387: c87266a14dbd6a70d7b1121387dfa5415c9fdc60 v: v3 --- [refs] | 2 +- trunk/include/linux/io.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index ab058df75c0e..b0e11ea84ff9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f0ee9aabb0520adea5937855a9575c08a97b16e7 +refs/heads/master: 218f0aaee8a6b0e5772b95b154dea5b7701b33aa diff --git a/trunk/include/linux/io.h b/trunk/include/linux/io.h index 09d351236379..8423dd376514 100644 --- a/trunk/include/linux/io.h +++ b/trunk/include/linux/io.h @@ -27,8 +27,16 @@ struct device; void __iowrite32_copy(void __iomem *to, const void *from, size_t count); void __iowrite64_copy(void __iomem *to, const void *from, size_t count); +#ifdef CONFIG_MMU int ioremap_page_range(unsigned long addr, unsigned long end, unsigned long phys_addr, pgprot_t prot); +#else +static inline int ioremap_page_range(unsigned long addr, unsigned long end, + unsigned long phys_addr, pgprot_t prot) +{ + return 0; +} +#endif /* * Managed iomap interface