--- zzzz-none-000/linux-4.9.231/arch/mips/mm/init.c 2020-07-22 07:10:54.000000000 +0000 +++ falcon-5590-729/linux-4.9.231/arch/mips/mm/init.c 2022-03-30 12:03:33.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