spl: ti: Avoid preloader_console_init if !CONFIG_SPL_SERIAL_SUPPORT
authorAlex Kiernan <alex.kiernan@gmail.com>
Thu, 19 Apr 2018 04:32:51 +0000 (04:32 +0000)
committerTom Rini <trini@konsulko.com>
Sat, 28 Apr 2018 22:32:22 +0000 (18:32 -0400)
commit117a0e02bed75defbe02d23b13dbe0ae12a27d94
tree6ef1250f1c6395ee5b74e6e745705637d3aaa542
parent30d313688f7aa722a420a4d6a5ef02573178355b
spl: ti: Avoid preloader_console_init if !CONFIG_SPL_SERIAL_SUPPORT

If CONFIG_SPL_SERIAL_SUPPORT is disabled then the build fails because
serial_init is undefined. Guard preloader_console_init() appropriately
to fix this.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
arch/arm/mach-omap2/boot-common.c
common/spl/spl.c