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 <biwen...@nxp.com>
---
 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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to