--- zzzz-none-000/linux-4.9.276/arch/mips/mm/init.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/arch/mips/mm/init.c 2023-04-05 08:19:00.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