Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211482
b: refs/heads/master
c: 06c1088
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Oct 12, 2010
1 parent 799b05c commit d5ca076
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 841f48a849e0dc14fe6f3d2bd31e831ac6a76546
refs/heads/master: 06c10884486a63a1e4ff657aaa51e848e64b9dc3
8 changes: 6 additions & 2 deletions trunk/arch/arm/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,12 @@ void __iomem * __arm_ioremap_pfn_caller(unsigned long pfn,
/*
* Don't allow RAM to be mapped - this causes problems with ARMv6+
*/
if (WARN_ON(pfn_valid(pfn)))
return NULL;
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);
}

type = get_mem_type(mtype);
if (!type)
Expand Down

0 comments on commit d5ca076

Please sign in to comment.