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 <michal.simek@xilinx.com>
diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index 0d0c21c..410b4cd 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -271,6 +271,7 @@
}
#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 @@
return 0;
}
+#endif