forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-16 50a212ec906f7524620675f0c57357691c26c81f
kernel/arch/mips/mti-malta/malta-memory.c
....@@ -12,7 +12,7 @@
1212 * Steven J. Hill <sjhill@mips.com>
1313 */
1414 #include <linux/init.h>
15
-#include <linux/bootmem.h>
15
+#include <linux/memblock.h>
1616 #include <linux/string.h>
1717
1818 #include <asm/bootinfo.h>
....@@ -39,17 +39,6 @@
3939
4040 void __init prom_free_prom_memory(void)
4141 {
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
- }
5342 }
5443
5544 phys_addr_t mips_cdmm_phys_base(void)