Thread (67 messages) flat view 67 messages, 6 authors, 2012-03-07
STALE5274d

[PATCH v5 6/7] ARM: ebsa110: use runtime ioremap hook

From: nico@fluxnic.net (Nicolas Pitre)
Date: 2012-03-06 22:06:34

On Tue, 6 Mar 2012, Rob Herring wrote:
quoted hunk ↗ jump to hunk
From: Rob Herring <redacted>

Convert ebsa110 platforms to use run-time ioremap hook instead of the
compile time hook.

Signed-off-by: Rob Herring <redacted>
Cc: Russell King <redacted>
---
 arch/arm/mach-ebsa110/core.c            |   15 +++++++++++++++
 arch/arm/mach-ebsa110/include/mach/io.h |    9 ---------
 2 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/arch/arm/mach-ebsa110/core.c b/arch/arm/mach-ebsa110/core.c
index 804c912..e0b831e 100644
--- a/arch/arm/mach-ebsa110/core.c
+++ b/arch/arm/mach-ebsa110/core.c
@@ -119,6 +119,20 @@ static void __init ebsa110_map_io(void)
 	iotable_init(ebsa110_io_desc, ARRAY_SIZE(ebsa110_io_desc));
 }
 
+static void __iomem *ebsa110_ioremap(unsigned long cookie, size_t size,
+				     unsigned int flags)
+{
+	return (void __iomem *)cookie;
+}
+
+static void ebsa110_iounmap(volatile void __iomem *io_addr)
+{}
+
+static void __init ebsa110_init_early(void)
+{
+	arch_ioremap_caller = ebsa110_ioremap;
ebsa110_ioremap() appears to lack the caller argument, so this will 
generate a pointer mismatch error.


Nicolas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help