瀏覽代碼

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 <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Bin Meng 10 年之前
父節點
當前提交
48a223e4ba
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      board/coreboot/coreboot/coreboot.c

+ 2 - 0
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;
 }