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)
commit48a223e4ba0a7fec5940cccf7950b656e4f7cbed
tree921034a84f103f086f6cdfe6dc75721c75aee7a6
parentade8127a7929c6394908e7debe89e297202b7efa
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>
board/coreboot/coreboot/coreboot.c