[PATCH 02/10] xilinx: common: Protect board_late_init_xilinx()

Michal Simek michal.simek at xilinx.com
Thu Oct 22 12:32:14 CEST 2020


Do not call board_late_init_xilinx() when BOARD_LATE_INIT is not enabled.

Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 board/xilinx/common/board.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index 74e81c18bd5a..821ee836dd84 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -352,6 +352,7 @@ void *board_fdt_blob_setup(void)
 }
 #endif
 
+#if defined(CONFIG_BOARD_LATE_INIT)
 static int env_set_by_index(const char *name, int index, char *data)
 {
 	char var[32];
@@ -414,3 +415,4 @@ int board_late_init_xilinx(void)
 
 	return 0;
 }
+#endif
-- 
2.28.0



More information about the U-Boot mailing list