From: Russell King Date: Tue, 9 Jul 2013 08:52:55 +0000 (+0100) Subject: ARM: mm: fix boot on SA1110 Assabet X-Git-Tag: firefly_0821_release~6453^2~1523 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9131e72c764bd7ea9554392edab26a368a765c4d;p=firefly-linux-kernel-4.4.55.git ARM: mm: fix boot on SA1110 Assabet commit 319e0b4f02f73983c03a2ca38595fc6367929edf upstream. Commit 83db0384 (mm/ARM: use common help functions to free reserved pages) broke booting on the Assabet by trying to convert a PFN to a virtual address using the __va() macro. This macro takes the physical address, not a PFN. Fix this. Signed-off-by: Russell King Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 9a5cdc01fcdf..0ecc43fd6229 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -600,7 +600,7 @@ void __init mem_init(void) #ifdef CONFIG_SA1111 /* now that our DMA memory is actually so designated, we can free it */ - free_reserved_area(__va(PHYS_PFN_OFFSET), swapper_pg_dir, 0, NULL); + free_reserved_area(__va(PHYS_OFFSET), swapper_pg_dir, 0, NULL); #endif free_highpages();