forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/mips/txx9/generic/setup.c
....@@ -26,13 +26,13 @@
2626 #include <linux/leds.h>
2727 #include <linux/device.h>
2828 #include <linux/slab.h>
29
+#include <linux/io.h>
2930 #include <linux/irq.h>
3031 #include <asm/bootinfo.h>
3132 #include <asm/idle.h>
3233 #include <asm/time.h>
3334 #include <asm/reboot.h>
3435 #include <asm/r4kcache.h>
35
-#include <asm/sections.h>
3636 #include <asm/setup.h>
3737 #include <asm/txx9/generic.h>
3838 #include <asm/txx9/pci.h>
....@@ -342,11 +342,6 @@
342342
343343 void __init prom_free_prom_memory(void)
344344 {
345
- unsigned long saddr = PAGE_SIZE;
346
- unsigned long eaddr = __pa_symbol(&_text);
347
-
348
- if (saddr < eaddr)
349
- free_init_pages("prom memory", saddr, eaddr);
350345 }
351346
352347 const char *get_system_type(void)