diff options
Diffstat (limited to 'arch/arm/mm/ioremap.c')
| -rw-r--r-- | arch/arm/mm/ioremap.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c index 55c17a6fb22f..ab506272b2d3 100644 --- a/arch/arm/mm/ioremap.c +++ b/arch/arm/mm/ioremap.c | |||
| @@ -204,12 +204,8 @@ void __iomem * __arm_ioremap_pfn_caller(unsigned long pfn, | |||
| 204 | /* | 204 | /* |
| 205 | * Don't allow RAM to be mapped - this causes problems with ARMv6+ | 205 | * Don't allow RAM to be mapped - this causes problems with ARMv6+ |
| 206 | */ | 206 | */ |
| 207 | if (pfn_valid(pfn)) { | 207 | if (WARN_ON(pfn_valid(pfn))) |
| 208 | printk(KERN_WARNING "BUG: Your driver calls ioremap() on system memory. This leads\n" | 208 | return NULL; |
| 209 | "to architecturally unpredictable behaviour on ARMv6+, and ioremap()\n" | ||
| 210 | "will fail in the next kernel release. Please fix your driver.\n"); | ||
| 211 | WARN_ON(1); | ||
| 212 | } | ||
| 213 | 209 | ||
| 214 | type = get_mem_type(mtype); | 210 | type = get_mem_type(mtype); |
| 215 | if (!type) | 211 | if (!type) |
