[U-Boot] [PATCH 14/42] board: freescale: ls1043aqds: fix build error
Biwen Li
biwen.li at nxp.com
Thu Nov 14 10:36:13 UTC 2019
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.li at 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
More information about the U-Boot
mailing list