Commit 48a223e4 authored by Bin Meng's avatar Bin Meng Committed by Simon Glass
Browse files

x86: coreboot: Wrap cros_ec initialization



cros_ec_board_init() should be called only when CONFIG_CROS_EC is
enabled.
Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent ade8127a
......@@ -10,8 +10,10 @@
int arch_early_init_r(void)
{
#ifdef CONFIG_CROS_EC
if (cros_ec_board_init())
return -1;
#endif
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment