]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: coreboot: Wrap cros_ec initialization
authorBin Meng <bmeng.cn@gmail.com>
Tue, 6 Jan 2015 14:14:22 +0000 (22:14 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 13 Jan 2015 15:25:04 +0000 (07:25 -0800)
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>
board/coreboot/coreboot/coreboot.c

index 154faf62393e56ebab70d2ca9f8bcd2823d639a9..e076ea69cfa159d5a378bf8f1b1dfc20f1dca8e0 100644 (file)
 
 int arch_early_init_r(void)
 {
+#ifdef CONFIG_CROS_EC
        if (cros_ec_board_init())
                return -1;
+#endif
 
        return 0;
 }