summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-iop/io.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2009-12-18 12:10:03 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-02-15 22:39:11 +0100
commit31aa8fd6fd30b0f36416df7d09619768d26b4332 (patch)
treed44a7edc5287cf73df43206712e3736ae9b1de5a /arch/arm/plat-iop/io.c
parentLinux 2.6.33-rc4 (diff)
downloadlinux-31aa8fd6fd30b0f36416df7d09619768d26b4332.tar.xz
linux-31aa8fd6fd30b0f36416df7d09619768d26b4332.zip
ARM: Add caller information to ioremap
This allows the procfs vmallocinfo file to show who created the ioremap regions. Note: __builtin_return_address(0) doesn't do what's expected if its used in an inline function, so we leave __arm_ioremap callers in such places alone. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-iop/io.c')
-rw-r--r--arch/arm/plat-iop/io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/plat-iop/io.c b/arch/arm/plat-iop/io.c
index ed0bbece0d61..e15bc17db90b 100644
--- a/arch/arm/plat-iop/io.c
+++ b/arch/arm/plat-iop/io.c
@@ -34,7 +34,8 @@ void * __iomem __iop3xx_ioremap(unsigned long cookie, size_t size,
retval = (void *) IOP3XX_PMMR_PHYS_TO_VIRT(cookie);
break;
default:
- retval = __arm_ioremap(cookie, size, mtype);
+ retval = __arm_ioremap_caller(cookie, size, mtype,
+ __builtin_return_address(0));
}
return retval;