diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-10-05 04:00:58 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-10-13 04:24:08 -0400 |
commit | 324c1aa3dfb4235c80df603e761cc06e28a7e903 (patch) | |
tree | 83dcd2aef5328a46b923a81b0f4423419fe640ee /arch/arm/mach-mx3 | |
parent | a90c31a3b70bcef915ffddacb8cbb4e63de33415 (diff) |
fix compilation of i.MX31 platforms
mxc_iomux_v3_init() is defined in arch/arm/plat-mxc/iomux-v3.c, which is
not linked for i.MX31 and produces an undefined reference error. Fix this
by building the offending code only for i.MX35.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r-- | arch/arm/mach-mx3/mm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/mm.c b/arch/arm/mach-mx3/mm.c index ad5a1122d765..bedf5b8d976a 100644 --- a/arch/arm/mach-mx3/mm.c +++ b/arch/arm/mach-mx3/mm.c | |||
@@ -81,6 +81,7 @@ void __init mx31_map_io(void) | |||
81 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); | 81 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); |
82 | } | 82 | } |
83 | 83 | ||
84 | #ifdef CONFIG_ARCH_MX35 | ||
84 | void __init mx35_map_io(void) | 85 | void __init mx35_map_io(void) |
85 | { | 86 | { |
86 | mxc_set_cpu_type(MXC_CPU_MX35); | 87 | mxc_set_cpu_type(MXC_CPU_MX35); |
@@ -89,6 +90,7 @@ void __init mx35_map_io(void) | |||
89 | 90 | ||
90 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); | 91 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); |
91 | } | 92 | } |
93 | #endif | ||
92 | 94 | ||
93 | void __init mx31_init_irq(void) | 95 | void __init mx31_init_irq(void) |
94 | { | 96 | { |