From: Michal Simek Date: Thu, 22 Oct 2020 09:14:20 +0000 (+0200) Subject: xilinx: common: Protect board_late_init_xilinx() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=7c553ac0ffef5a6bc2f524d11f00338ef59ba7cb;p=u-boot.git 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 --- 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