diff options
Diffstat (limited to 'arch/arm/mm/ioremap.c')
-rw-r--r-- | arch/arm/mm/ioremap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c index 28c8b950ef0..03f11935ed0 100644 --- a/arch/arm/mm/ioremap.c +++ b/arch/arm/mm/ioremap.c | |||
@@ -268,6 +268,12 @@ void __iomem * __arm_ioremap_pfn_caller(unsigned long pfn, | |||
268 | if (pfn >= 0x100000 && (__pfn_to_phys(pfn) & ~SUPERSECTION_MASK)) | 268 | if (pfn >= 0x100000 && (__pfn_to_phys(pfn) & ~SUPERSECTION_MASK)) |
269 | return NULL; | 269 | return NULL; |
270 | 270 | ||
271 | /* | ||
272 | * Don't allow RAM to be mapped - this causes problems with ARMv6+ | ||
273 | */ | ||
274 | if (WARN_ON(pfn_valid(pfn))) | ||
275 | return NULL; | ||
276 | |||
271 | type = get_mem_type(mtype); | 277 | type = get_mem_type(mtype); |
272 | if (!type) | 278 | if (!type) |
273 | return NULL; | 279 | return NULL; |