diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-02-13 14:24:15 -0500 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-03-06 22:23:16 -0500 |
commit | c177aa98e5a7bbf71bc28baf0516896e3bb13f6e (patch) | |
tree | ca3bebe028a4d4c4640146bde04bd95065a83b8a /arch/arm/mach-imx/mm-imx3.c | |
parent | 4fe7ef3a0811c33137ace0ed424dd0c01dd2d75e (diff) |
ARM: imx: convert to common runtime ioremap hook
Convert i.MX platforms to use the common run-time ioremap hook instead of
the imx specific hook.
Also, move addr_in_module out of io.h.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Sascha Hauer <kernel@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/mm-imx3.c')
-rw-r--r-- | arch/arm/mach-imx/mm-imx3.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-imx/mm-imx3.c b/arch/arm/mach-imx/mm-imx3.c index 8404ee72555a..04be18d87e45 100644 --- a/arch/arm/mach-imx/mm-imx3.c +++ b/arch/arm/mach-imx/mm-imx3.c | |||
@@ -59,8 +59,8 @@ static void imx3_idle(void) | |||
59 | : "=r" (reg)); | 59 | : "=r" (reg)); |
60 | } | 60 | } |
61 | 61 | ||
62 | static void __iomem *imx3_ioremap(unsigned long phys_addr, size_t size, | 62 | static void __iomem *imx3_ioremap_caller(unsigned long phys_addr, size_t size, |
63 | unsigned int mtype) | 63 | unsigned int mtype, void *caller) |
64 | { | 64 | { |
65 | if (mtype == MT_DEVICE) { | 65 | if (mtype == MT_DEVICE) { |
66 | /* | 66 | /* |
@@ -73,7 +73,7 @@ static void __iomem *imx3_ioremap(unsigned long phys_addr, size_t size, | |||
73 | mtype = MT_DEVICE_NONSHARED; | 73 | mtype = MT_DEVICE_NONSHARED; |
74 | } | 74 | } |
75 | 75 | ||
76 | return __arm_ioremap(phys_addr, size, mtype); | 76 | return __arm_ioremap_caller(phys_addr, size, mtype, caller); |
77 | } | 77 | } |
78 | 78 | ||
79 | void imx3_init_l2x0(void) | 79 | void imx3_init_l2x0(void) |
@@ -132,7 +132,7 @@ void __init imx31_init_early(void) | |||
132 | { | 132 | { |
133 | mxc_set_cpu_type(MXC_CPU_MX31); | 133 | mxc_set_cpu_type(MXC_CPU_MX31); |
134 | mxc_arch_reset_init(MX31_IO_ADDRESS(MX31_WDOG_BASE_ADDR)); | 134 | mxc_arch_reset_init(MX31_IO_ADDRESS(MX31_WDOG_BASE_ADDR)); |
135 | imx_ioremap = imx3_ioremap; | 135 | arch_ioremap_caller = imx3_ioremap_caller; |
136 | arm_pm_idle = imx3_idle; | 136 | arm_pm_idle = imx3_idle; |
137 | } | 137 | } |
138 | 138 | ||
@@ -196,7 +196,7 @@ void __init imx35_init_early(void) | |||
196 | mxc_iomux_v3_init(MX35_IO_ADDRESS(MX35_IOMUXC_BASE_ADDR)); | 196 | mxc_iomux_v3_init(MX35_IO_ADDRESS(MX35_IOMUXC_BASE_ADDR)); |
197 | mxc_arch_reset_init(MX35_IO_ADDRESS(MX35_WDOG_BASE_ADDR)); | 197 | mxc_arch_reset_init(MX35_IO_ADDRESS(MX35_WDOG_BASE_ADDR)); |
198 | arm_pm_idle = imx3_idle; | 198 | arm_pm_idle = imx3_idle; |
199 | imx_ioremap = imx3_ioremap; | 199 | arch_ioremap_caller = imx3_ioremap_caller; |
200 | } | 200 | } |
201 | 201 | ||
202 | void __init mx35_init_irq(void) | 202 | void __init mx35_init_irq(void) |