Skip to content

Commit

Permalink
fix compilation of i.MX31 platforms
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guennadi Liakhovetski authored and Sascha Hauer committed Oct 13, 2009
1 parent a90c31a commit 324c1aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-mx3/mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ void __init mx31_map_io(void)
iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc));
}

#ifdef CONFIG_ARCH_MX35
void __init mx35_map_io(void)
{
mxc_set_cpu_type(MXC_CPU_MX35);
Expand All @@ -89,6 +90,7 @@ void __init mx35_map_io(void)

iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc));
}
#endif

void __init mx31_init_irq(void)
{
Expand Down

0 comments on commit 324c1aa

Please sign in to comment.