ARM: mm: Fix max_mapnr with recent max*pfn updates
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Sat, 23 Nov 2013 19:36:42 +0000 (14:36 -0500)
committerSantosh Shilimkar <santosh.shilimkar@ti.com>
Sat, 23 Nov 2013 22:58:35 +0000 (17:58 -0500)
commitb3ba41f28f7fe147c23bfadf6280b3492c9696b1
tree1b2209fa74feb8707b59b723a8972d436457d3e8
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
ARM: mm: Fix max_mapnr with recent max*pfn updates

With commit  26ba47b1 {ARM: 7805/1: mm: change max*pfn to include
the physical offset of memory}, the max_pfn already contain
PHYS_PFN_OFFSET, so it shouldn't be taken into account again.

While at it, use use set_max_mapnr() helper.

Cc: Russell King <linux@arm.linux.org.uk>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
arch/arm/mm/init.c