This fixes build error as follows:
- board/freescale/ls1043aqds/built-in.o: In function `board_early_init_f:
  board/freescale/ls1043aqds/ls1043aqds.c:462: undefined reference to
  `i2c_early_init_f'`

Signed-off-by: Biwen Li <biwen...@nxp.com>
---
 board/freescale/ls1043aqds/ls1043aqds.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/freescale/ls1043aqds/ls1043aqds.c 
b/board/freescale/ls1043aqds/ls1043aqds.c
index 7a0e32f6e0..030ec44fe2 100644
--- a/board/freescale/ls1043aqds/ls1043aqds.c
+++ b/board/freescale/ls1043aqds/ls1043aqds.c
@@ -458,8 +458,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