]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Revert "ARM: relax ioremap prohibition (309caa9) for -final and -stable"
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 21 Dec 2010 10:42:20 +0000 (10:42 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 24 Dec 2010 09:49:52 +0000 (09:49 +0000)
This reverts commit 06c1088, as promised in the warning message.

arch/arm/mm/ioremap.c

index 17e7b0b57e49f80e6e30c8bbe65ea9d1ebcf14a6..ab506272b2d3ef459b264b7741d61af46f6aa6b8 100644 (file)
@@ -204,12 +204,8 @@ void __iomem * __arm_ioremap_pfn_caller(unsigned long pfn,
        /*
         * Don't allow RAM to be mapped - this causes problems with ARMv6+
         */
-       if (pfn_valid(pfn)) {
-               printk(KERN_WARNING "BUG: Your driver calls ioremap() on system memory.  This leads\n"
-                      KERN_WARNING "to architecturally unpredictable behaviour on ARMv6+, and ioremap()\n"
-                      KERN_WARNING "will fail in the next kernel release.  Please fix your driver.\n");
-               WARN_ON(1);
-       }
+       if (WARN_ON(pfn_valid(pfn)))
+               return NULL;
 
        type = get_mem_type(mtype);
        if (!type)