| .. | .. |
|---|
| 12 | 12 | * Steven J. Hill <sjhill@mips.com> |
|---|
| 13 | 13 | */ |
|---|
| 14 | 14 | #include <linux/init.h> |
|---|
| 15 | | -#include <linux/bootmem.h> |
|---|
| 15 | +#include <linux/memblock.h> |
|---|
| 16 | 16 | #include <linux/string.h> |
|---|
| 17 | 17 | |
|---|
| 18 | 18 | #include <asm/bootinfo.h> |
|---|
| .. | .. |
|---|
| 39 | 39 | |
|---|
| 40 | 40 | void __init prom_free_prom_memory(void) |
|---|
| 41 | 41 | { |
|---|
| 42 | | - unsigned long addr; |
|---|
| 43 | | - int i; |
|---|
| 44 | | - |
|---|
| 45 | | - for (i = 0; i < boot_mem_map.nr_map; i++) { |
|---|
| 46 | | - if (boot_mem_map.map[i].type != BOOT_MEM_ROM_DATA) |
|---|
| 47 | | - continue; |
|---|
| 48 | | - |
|---|
| 49 | | - addr = boot_mem_map.map[i].addr; |
|---|
| 50 | | - free_init_pages("YAMON memory", |
|---|
| 51 | | - addr, addr + boot_mem_map.map[i].size); |
|---|
| 52 | | - } |
|---|
| 53 | 42 | } |
|---|
| 54 | 43 | |
|---|
| 55 | 44 | phys_addr_t mips_cdmm_phys_base(void) |
|---|