Patchwork [2/2] arm: imx: add missing select IMX_HAVE_PLATFORM for MACH_MX35_3DS in Kconfig

login
register
mail settings
Submitter Marc Kleine-Budde
Date April 24, 2012, 3:13 p.m.
Message ID <1335280398-19769-3-git-send-email-mkl@pengutronix.de>
Download mbox | patch
Permalink /patch/154693/
State New
Headers show

Comments

Marc Kleine-Budde - April 24, 2012, 3:13 p.m.
This patch fixes the following linker error:
arch/arm/mach-imx/built-in.o: In function `mx35_3ds_init':
mach-mx35_3ds.c:(.init.text+0x4b0): undefined reference to `imx_add_ipu_core'
mach-mx35_3ds.c:(.init.text+0x4c4): undefined reference to `imx_alloc_mx3_camera'
mach-mx35_3ds.c:(.init.text+0x520): undefined reference to `imx_add_mx3_sdc_fb'
mach-mx35_3ds.c:(.init.text+0x590): undefined reference to `imx35_ipu_core_data'

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 arch/arm/mach-imx/Kconfig |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Fabio Estevam - April 24, 2012, 3:34 p.m.
On Tue, Apr 24, 2012 at 12:13 PM, Marc Kleine-Budde <mkl@pengutronix.de> wrote:

> @@ -571,8 +571,11 @@ config MACH_MX35_3DS
>        select MXC_DEBUG_BOARD
>        select IMX_HAVE_PLATFORM_FSL_USB2_UDC
>        select IMX_HAVE_PLATFORM_IMX2_WDT
> +       select IMX_HAVE_PLATFORM_IMX_FB
>        select IMX_HAVE_PLATFORM_IMX_I2C
>        select IMX_HAVE_PLATFORM_IMX_UART
> +       select IMX_HAVE_PLATFORM_IPU_CORE
> +       select IMX_HAVE_PLATFORM_MX2_CAMERA

mx35 should not select IMX_HAVE_PLATFORM_MX2_CAMERA as this only
applies for mx25/27.

Patch

diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index 7561eca..e18d4199 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -571,8 +571,11 @@  config MACH_MX35_3DS
 	select MXC_DEBUG_BOARD
 	select IMX_HAVE_PLATFORM_FSL_USB2_UDC
 	select IMX_HAVE_PLATFORM_IMX2_WDT
+	select IMX_HAVE_PLATFORM_IMX_FB
 	select IMX_HAVE_PLATFORM_IMX_I2C
 	select IMX_HAVE_PLATFORM_IMX_UART
+	select IMX_HAVE_PLATFORM_IPU_CORE
+	select IMX_HAVE_PLATFORM_MX2_CAMERA
 	select IMX_HAVE_PLATFORM_MXC_EHCI
 	select IMX_HAVE_PLATFORM_MXC_NAND
 	select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX