author | Matt Fleming
<matt@console-pimps.org> 2009-10-06 21:22:27 UTC |
committer | Paul Mundt
<lethal@linux-sh.org> 2009-10-09 02:25:10 UTC |
parent | fc2bdefdde89b54d8fcde7bbf7d0adc0ce5cb044 |
arch/sh/mm/ioremap_32.c | +1 | -1 |
diff --git a/arch/sh/mm/ioremap_32.c b/arch/sh/mm/ioremap_32.c index c3250614e3a..a86eaa9d75a 100644 --- a/arch/sh/mm/ioremap_32.c +++ b/arch/sh/mm/ioremap_32.c @@ -83,7 +83,7 @@ void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, * * PMB entries are all pre-faulted. */ - if (unlikely(size >= 0x1000000)) { + if (unlikely(phys_addr >= P1SEG)) { unsigned long mapped = pmb_remap(addr, phys_addr, size, flags); if (likely(mapped)) {