summaryrefslogtreecommitdiff
path: root/board/freescale/ls1028a/ls1028a.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale/ls1028a/ls1028a.c')
-rw-r--r--board/freescale/ls1028a/ls1028a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/ls1028a/ls1028a.c b/board/freescale/ls1028a/ls1028a.c
index 5269fd34c6..461c571b36 100644
--- a/board/freescale/ls1028a/ls1028a.c
+++ b/board/freescale/ls1028a/ls1028a.c
@@ -137,7 +137,7 @@ int board_early_init_f(void)
u8 uart;
#endif
-#ifdef CONFIG_SYS_I2C_EARLY_INIT
+#if defined(CONFIG_SYS_I2C_EARLY_INIT) && defined(CONFIG_SPL_BUILD)
i2c_early_init_f();
#endif