diff options
author | Michal Simek <michal.simek@xilinx.com> | 2018-12-20 09:33:38 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2019-01-24 10:03:42 +0100 |
commit | 0bf3f9cb2722e57a0afb37cb61af5ceaefcf70e0 (patch) | |
tree | a09903ae05c7239c6b31f79d28d01fd09a5bb1f2 /board/xilinx | |
parent | f11d4ab0b37ede1eed45540ac4e2384b3d19ce98 (diff) | |
download | u-boot-0bf3f9cb2722e57a0afb37cb61af5ceaefcf70e0.zip u-boot-0bf3f9cb2722e57a0afb37cb61af5ceaefcf70e0.tar.gz u-boot-0bf3f9cb2722e57a0afb37cb61af5ceaefcf70e0.tar.bz2 |
arm64: zynqmp: Protect board_late_init function
Function should be compiled only when CONFIG_BOARD_LATE_INIT is defined.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx')
-rw-r--r-- | board/xilinx/zynqmp/zynqmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |