From: Bin Meng Date: Tue, 6 Jan 2015 14:14:22 +0000 (+0800) Subject: x86: coreboot: Wrap cros_ec initialization X-Git-Tag: v2015.04-rc1~195^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=48a223e4ba0a7fec5940cccf7950b656e4f7cbed;p=u-boot x86: coreboot: Wrap cros_ec initialization cros_ec_board_init() should be called only when CONFIG_CROS_EC is enabled. Signed-off-by: Bin Meng Acked-by: Simon Glass --- diff --git a/board/coreboot/coreboot/coreboot.c b/board/coreboot/coreboot/coreboot.c index 154faf6239..e076ea69cf 100644 --- a/board/coreboot/coreboot/coreboot.c +++ b/board/coreboot/coreboot/coreboot.c @@ -10,8 +10,10 @@ int arch_early_init_r(void) { +#ifdef CONFIG_CROS_EC if (cros_ec_board_init()) return -1; +#endif return 0; }