aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-11-13 15:38:02 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-11-13 15:38:02 +0900
commit10840f034e2329150ce0e683e636ea13b268d333 (patch)
tree616eeea883810bdcfac5a82468edc54071bba6fe /arch/sh/mm
parentbfbedf787c6b77270679429caadb044b2d33c94c (diff)
downloadkernel_samsung_smdk4412-10840f034e2329150ce0e683e636ea13b268d333.zip
kernel_samsung_smdk4412-10840f034e2329150ce0e683e636ea13b268d333.tar.gz
kernel_samsung_smdk4412-10840f034e2329150ce0e683e636ea13b268d333.tar.bz2
sh: Don't factor in PAGE_OFFSET for valid_phys_addr_range() check.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r--arch/sh/mm/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/mmap.c b/arch/sh/mm/mmap.c
index 1f3cc3d..8837d51 100644
--- a/arch/sh/mm/mmap.c
+++ b/arch/sh/mm/mmap.c
@@ -17,7 +17,7 @@
*/
int valid_phys_addr_range(unsigned long addr, size_t count)
{
- if (addr < (PAGE_OFFSET + (PFN_START << PAGE_SHIFT)))
+ if (addr < __MEMORY_START)
return 0;
if (addr + count > __pa(high_memory))
return 0;