···204204 /*205205 * Don't allow RAM to be mapped - this causes problems with ARMv6+206206 */207207- if (WARN_ON(pfn_valid(pfn)))208208- return NULL;207207+ if (pfn_valid(pfn)) {208208+ printk(KERN_WARNING "BUG: Your driver calls ioremap() on system memory. This leads\n"209209+ KERN_WARNING "to architecturally unpredictable behaviour on ARMv6+, and ioremap()\n"210210+ KERN_WARNING "will fail in the next kernel release. Please fix your driver.\n");211211+ WARN_ON(1);212212+ }209213210214 type = get_mem_type(mtype);211215 if (!type)