arm64: zynqmp: Protect board_late_init function
authorMichal Simek <michal.simek@xilinx.com>
Thu, 20 Dec 2018 08:33:38 +0000 (09:33 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 24 Jan 2019 09:03:42 +0000 (10:03 +0100)
Function should be compiled only when CONFIG_BOARD_LATE_INIT is defined.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynqmp/zynqmp.c

index 13c404b6ef0882fea2a78b15fcc819b5920e1d0f..1dcb26db95e1459a343603c4eaf709447af9d048 100644 (file)
@@ -489,6 +489,7 @@ void reset_cpu(ulong addr)
 {
 }
 
+#if defined(CONFIG_BOARD_LATE_INIT)
 static const struct {
        u32 bit;
        const char *name;
@@ -655,6 +656,7 @@ int board_late_init(void)
 
        return 0;
 }
+#endif
 
 int checkboard(void)
 {