diff options
author | Fabian Frederick <[email protected]> | 2014-06-04 16:05:54 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-06-04 16:53:53 -0700 |
commit | acc8a1c00585c5cd62fcafd9309ef40ac35e8bfa (patch) | |
tree | e90a523aa44ee210ba21e24d798afb29af062636 | |
parent | 220108361f7cef9bc3ac0b4c84cb556d36ec2a6f (diff) |
arch/unicore32/mm/ioremap.c: convert printk/warn_on to warn()
Coalesce formats.
[[email protected]: undo crazy long line]
Signed-off-by: Fabian Frederick <[email protected]>
Cc: Guan Xuetao <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | arch/unicore32/mm/ioremap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/unicore32/mm/ioremap.c b/arch/unicore32/mm/ioremap.c index 13068ee22f33..a0840fa05431 100644 --- a/arch/unicore32/mm/ioremap.c +++ b/arch/unicore32/mm/ioremap.c @@ -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) |