ARM: LPAE: use phys_addr_t in free_memmap()
authorVitaly Andrianov <vitalya@ti.com>
Thu, 21 Jun 2012 12:09:05 +0000 (08:09 -0400)
committerWill Deacon <will.deacon@arm.com>
Thu, 30 May 2013 15:01:56 +0000 (16:01 +0100)
commit56bc628666b39dc8cb395c7686d8c032efd731f4
treea45f9b91da92382f26fdb5f60db8a1aa98a96ff0
parent20d6956d8cd2452cec0889ff040f18afc03c2e6b
ARM: LPAE: use phys_addr_t in free_memmap()

The free_memmap() was mistakenly using unsigned long type to represent
physical addresses.  This breaks on PAE systems where memory could be placed
above the 32-bit addressible limit.

This patch fixes this function to properly use phys_addr_t instead.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Subash Patel <subash.rp@samsung.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/mm/init.c