From: Biwen Li Date: Thu, 14 Nov 2019 18:36:19 +0800 Subject: [U-Boot] [PATCH 20/42] board: freescale: ls1046aqds: fix build error In-Reply-To: <20191114103641.34085-1-biwen.li@nxp.com> References: <20191114103641.34085-1-biwen.li@nxp.com> Message-ID: <20191114103641.34085-20-biwen.li@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This fixes build error as follows: - board/freescale/ls1046aqds/built-in.o: In function `board_early_init_f: board/freescale/ls1046aqds/ls1046aqds.c:333: undefined reference to `i2c_early_init_f' Signed-off-by: Biwen Li --- board/freescale/ls1046aqds/ls1046aqds.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/freescale/ls1046aqds/ls1046aqds.c b/board/freescale/ls1046aqds/ls1046aqds.c index 6a51dcd649..6ab56279d7 100644 --- a/board/freescale/ls1046aqds/ls1046aqds.c +++ b/board/freescale/ls1046aqds/ls1046aqds.c @@ -315,8 +315,10 @@ int board_early_init_f(void) u8 uart; #endif +#ifdef CONFIG_SYS_I2C #ifdef CONFIG_SYS_I2C_EARLY_INIT i2c_early_init_f(); +#endif #endif fsl_lsch2_early_init_f(); -- 2.17.1