aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mm/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 3e8f106ee5fe..4c7bab44bf5c 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -587,7 +587,7 @@ void __init mem_init(void)
587 extern u32 itcm_end; 587 extern u32 itcm_end;
588#endif 588#endif
589 589
590 max_mapnr = pfn_to_page(max_pfn + PHYS_PFN_OFFSET) - mem_map; 590 set_max_mapnr(pfn_to_page(max_pfn) - mem_map);
591 591
592 /* this will put all unused low memory onto the freelists */ 592 /* this will put all unused low memory onto the freelists */
593 free_unused_memmap(&meminfo); 593 free_unused_memmap(&meminfo);