ARM: MX3: do not reference mxc_iomux_v3_init() for !CONFIG_ARCH_MX35
Subsystems (2)
PATCH 1/1 ARM: MX3: do not reference mxc_iomux_v3_init() for !CONFIG_ARCH_MX35
Recent kernels for mx31 fail to link due to an undefined reference to mxc_iomux_v3_init().
Signed-off-by Daniel Mack <[email protected]>
Cc Sascha Hauer <[email protected]>
--- arch/arm/mach-mx3/mm.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-)
arch/arm/mach-mx3/mm.c +7 -5
@@ -81,6 +81,12 @@ void __init mx31_map_io(void)iotable_init (mxc_io_desc,ARRAY_SIZE (mxc_io_desc)); } +void __init mx31_init_irq (void ) +{ +mxc_init_irq (IO_ADDRESS (AVIC_BASE_ADDR )); +} + +#ifdef CONFIG_ARCH_MX35 void __init mx35_map_io (void ) {mxc_set_cpu_type (MXC_CPU_MX35 );
@@ -90,15 +96,11 @@ void __init mx35_map_io(void) iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); } -void __init mx31_init_irq (void ) -{ -mxc_init_irq (IO_ADDRESS (AVIC_BASE_ADDR )); -} -void __init mx35_init_irq (void ) {mx31_init_irq (); } +#endif #ifdef CONFIG_CACHE_L2X0 static int mxc_init_l2x0 (void )
Signature · 1 line
1.6.5