MIPS: replace add_memory_region with memblock
add_memory_region was the old interface for registering memory and was already changed to used memblock internaly. Replace it by directly calling memblock functions. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
@@ -89,7 +89,7 @@ static void __init xlp_init_mem_from_bars(void)
|
||||
if (map[i] > 0x10000000 && map[i] < 0x20000000)
|
||||
map[i] = 0x20000000;
|
||||
|
||||
add_memory_region(map[i], map[i+1] - map[i], BOOT_MEM_RAM);
|
||||
memblock_add(map[i], map[i+1] - map[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user