--- zzzz-none-000/linux-4.9.218/arch/mips/mm/init.c 2020-04-02 15:20:41.000000000 +0000 +++ seale-7590ac-750/linux-4.9.218/arch/mips/mm/init.c 2022-11-30 09:46:19.000000000 +0000 @@ -504,10 +504,16 @@ } #endif +void __init avm_mtd_cleanup(void) __weak; +void __init avm_mtd_cleanup(void) +{ +} + void (*free_init_pages_eva)(void *begin, void *end) = NULL; void __ref free_initmem(void) { + avm_mtd_cleanup(); prom_free_prom_memory(); /* * Let the platform define a specific function to free the