mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
73826d604b
commit
e7ae8d174e
28 changed files with 82 additions and 149 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue