powerpc/mm: Add virt_to_pfn and use this instead of opencoding
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 3 Sep 2015 07:50:56 +0000 (13:20 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 1 Oct 2015 06:52:02 +0000 (16:52 +1000)
commit65d3223a853ac8598694064c1d37b0955e7d99cc
tree13a23aaa4f550d6b9d913618c1179afbdc4f96f9
parentc974809a26a13e40254dbe3cf46f49aa32acca11
powerpc/mm: Add virt_to_pfn and use this instead of opencoding

This add helper virt_to_pfn and remove the opencoded usage of the
same.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/page.h