diff --git a/arch/mips/dec/prom/memory.c b/arch/mips/dec/prom/memory.c index 5073d2ed78bb..031c0cd45d85 100644 --- a/arch/mips/dec/prom/memory.c +++ b/arch/mips/dec/prom/memory.c @@ -91,29 +91,14 @@ void __init prom_meminit(u32 magic) pmax_setup_memory_region(); else rex_setup_memory_region(); -} - -void __init prom_free_prom_memory(void) -{ - unsigned long end; - - /* - * Free everything below the kernel itself but leave - * the first page reserved for the exception handlers. - */ #if IS_ENABLED(CONFIG_DECLANCE) /* - * Leave 128 KB reserved for Lance memory for - * IOASIC DECstations. + * Reserve 128 KB for Lance memory for IOASIC DECstations. * * XXX: save this address for use in dec_lance.c? */ if (IOASIC) - end = __pa(&_text) - 0x00020000; - else + memblock_reserve(__pa_symbol(&_text) - 0x00020000, 0x00020000); #endif - end = __pa(&_text); - - free_init_pages("unused PROM memory", PAGE_SIZE, end); }