| .. | .. |
|---|
| 9 | 9 | #include <linux/init.h> |
|---|
| 10 | 10 | #include <linux/kernel.h> |
|---|
| 11 | 11 | #include <linux/delay.h> |
|---|
| 12 | | -#include <linux/bootmem.h> |
|---|
| 12 | +#include <linux/memblock.h> |
|---|
| 13 | 13 | #include <linux/ioport.h> |
|---|
| 14 | 14 | #include <linux/pm.h> |
|---|
| 15 | 15 | #include <asm/bootinfo.h> |
|---|
| .. | .. |
|---|
| 146 | 146 | |
|---|
| 147 | 147 | void __init plat_mem_setup(void) |
|---|
| 148 | 148 | { |
|---|
| 149 | | - add_memory_region(0, bcm63xx_get_memory_size(), BOOT_MEM_RAM); |
|---|
| 149 | + memblock_add(0, bcm63xx_get_memory_size()); |
|---|
| 150 | 150 | |
|---|
| 151 | 151 | _machine_halt = bcm63xx_machine_halt; |
|---|
| 152 | 152 | _machine_restart = __bcm63xx_machine_reboot; |
|---|