kernel/arch/mips/txx9/rbtx4938/prom.c
.. .. @@ -11,13 +11,12 @@ 11 11 */ 12 12 13 13 #include <linux/init.h> 14 -#include <linux/bootmem.h>15 -#include <asm/bootinfo.h>14 +#include <linux/memblock.h>16 15 #include <asm/txx9/generic.h> 17 16 #include <asm/txx9/rbtx4938.h> 18 17 19 18 void __init rbtx4938_prom_init(void) 20 19 { 21 - add_memory_region(0, tx4938_get_mem_size(), BOOT_MEM_RAM);20 + memblock_add(0, tx4938_get_mem_size());22 21 txx9_sio_putchar_init(TX4938_SIO_REG(0) & 0xfffffffffULL); 23 22 }