|
@@ -143,13 +143,11 @@ void __iomem *__uc32_ioremap_pfn_caller(unsigned long pfn,
|
|
|
/*
|
|
|
* Don't allow RAM to be mapped
|
|
|
*/
|
|
|
- if (pfn_valid(pfn)) {
|
|
|
- printk(KERN_WARNING "BUG: Your driver calls ioremap() on\n"
|
|
|
+ if (pfn_valid(pfn))
|
|
|
+ WARN(1, "BUG: Your driver calls ioremap() on\n"
|
|
|
"system memory. This leads to architecturally\n"
|
|
|
"unpredictable behaviour, and ioremap() will fail in\n"
|
|
|
"the next kernel release. Please fix your driver.\n");
|
|
|
- WARN_ON(1);
|
|
|
- }
|
|
|
|
|
|
type = get_mem_type(mtype);
|
|
|
if (!type)
|