From: Michal Simek Date: Thu, 20 Dec 2018 08:33:38 +0000 (+0100) Subject: arm64: zynqmp: Protect board_late_init function X-Git-Tag: v2019.04-rc1~28^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bf3f9cb2722e57a0afb37cb61af5ceaefcf70e0;p=platform%2Fkernel%2Fu-boot.git arm64: zynqmp: Protect board_late_init function Function should be compiled only when CONFIG_BOARD_LATE_INIT is defined. Signed-off-by: Michal Simek --- diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 13c404b..1dcb26d 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -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) {