ARM: provide runtime hook for ioremap/iounmap
authorRob Herring <rob.herring@calxeda.com>
Fri, 10 Feb 2012 23:05:13 +0000 (17:05 -0600)
committerRob Herring <rob.herring@calxeda.com>
Wed, 7 Mar 2012 03:22:01 +0000 (21:22 -0600)
commit4fe7ef3a0811c33137ace0ed424dd0c01dd2d75e
tree046a63d0c5db517529e86c914bb2fb493a4adee6
parent47168824fa71b52ca3f4c18ddf0c42ff35192235
ARM: provide runtime hook for ioremap/iounmap

We have compile time over-ride of ioremap and iounmap, but an run-time
override is needed for multi-platform builds. This adds an extra function
pointer check, but ioremap is not peformance critical. The option for
compile time selection remains.

The caller variant is used here to provide correct caller information as
ARM can only support level 0 for __builtin_return_address.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nicolas Pitre <nico@linaro.org>
arch/arm/include/asm/io.h
arch/arm/mm/ioremap.c