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>
This commit is contained in:
Michal Simek 2018-12-20 09:33:38 +01:00
parent f11d4ab0b3
commit 0bf3f9cb27

View 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)
{