From 7c553ac0ffef5a6bc2f524d11f00338ef59ba7cb Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Thu, 22 Oct 2020 11:14:20 +0200 Subject: [PATCH] xilinx: common: Protect board_late_init_xilinx() Do not call board_late_init_xilinx() when BOARD_LATE_INIT is not enabled. Signed-off-by: Michal Simek --- 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 0d0c21ca3d..410b4cd998 100644 --- a/board/xilinx/common/board.c +++ b/board/xilinx/common/board.c @@ -271,6 +271,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]; @@ -333,3 +334,4 @@ int board_late_init_xilinx(void) return 0; } +#endif -- 2.39.5