aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-09-28 08:48:48 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-09-28 08:49:14 -0400
commita3d7193e3c5d0b2365b9247ef0d4cb549187f32f (patch)
treeefefb7c4b11628a6e9008ee9cec0242f070cbc73 /arch
parentc564df4db85aac8d1d65a56176a0a25f46138064 (diff)
ARM: ensure vm_struct has its phys_addr member filled in
This allows /proc/vmallocinfo to show the physical address for ioremap mappings. Acked-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mm/ioremap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c
index 566750fa57d4..491f6b3336f5 100644
--- a/arch/arm/mm/ioremap.c
+++ b/arch/arm/mm/ioremap.c
@@ -247,6 +247,7 @@ void __iomem * __arm_ioremap_pfn_caller(unsigned long pfn,
247 if (!area) 247 if (!area)
248 return NULL; 248 return NULL;
249 addr = (unsigned long)area->addr; 249 addr = (unsigned long)area->addr;
250 area->phys_addr = __pfn_to_phys(pfn);
250 251
251#if !defined(CONFIG_SMP) && !defined(CONFIG_ARM_LPAE) 252#if !defined(CONFIG_SMP) && !defined(CONFIG_ARM_LPAE)
252 if (DOMAIN_IO == 0 && 253 if (DOMAIN_IO == 0 &&