arm64:mm: initialize max_mapnr using function set_max_mapnr
authorGanapatrao Kulkarni <ganapatrao.kulkarni@caviumnetworks.com>
Tue, 16 Sep 2014 17:53:54 +0000 (18:53 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 17 Sep 2014 17:14:16 +0000 (18:14 +0100)
commita6583c7c8114c4850b57365e85da85e37d5fc568
treed1998d46ff5b746c84b997fed3ae39ff584fdd9b
parent7a9c43bed891d1f8d639c69893ee194f5700d0b2
arm64:mm: initialize max_mapnr using function set_max_mapnr

Initializing max_mapnr using set_max_mapnr() helper function instead
of direct reference. Also not adding PHYS_PFN_OFFSET to max_pfn,
since it already contains it.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulkarni@caviumnetworks.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/init.c