Use PHYS_OFFSET.
authorEugene Konev <ejka@imfi.kspu.ru>
Sat, 8 Sep 2007 09:16:30 +0000 (09:16 +0000)
committerEugene Konev <ejka@imfi.kspu.ru>
Sat, 8 Sep 2007 09:16:30 +0000 (09:16 +0000)
SVN-Revision: 8685

target/linux/ar7/files/arch/mips/ar7/memory.c

index 99faf217b7d60bd0aee72ce43c9196910010a56b..4c930c08c96b68f1cfc558f2b23f4e43285be7bb 100644 (file)
@@ -65,8 +65,8 @@ void __init prom_meminit(void)
        unsigned long pages;
 
        pages = memsize() >> PAGE_SHIFT;
-       add_memory_region(ARCH_PFN_OFFSET << PAGE_SHIFT, pages <<
-                         PAGE_SHIFT, BOOT_MEM_RAM);
+       add_memory_region(PHYS_OFFSET, pages << PAGE_SHIFT,
+                         BOOT_MEM_RAM);
 }
 
 void __init prom_free_prom_memory(void)