]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sandbox: cros_ec: Drop unnecessary init
authorSimon Glass <sjg@chromium.org>
Thu, 26 Mar 2015 15:29:33 +0000 (09:29 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:48 +0000 (21:47 +0200)
Since driver model will probe the EC when it is first used, we do not
need to init it explicitly.

Signed-off-by: Simon Glass <sjg@chromium.org>
board/sandbox/sandbox.c
include/configs/sandbox.h

index e4d4e021bcd9ff0fb26cc6121a4c103ace7f1c5b..2227f1c1214a97ae078fe18dac950dfe1a835b90 100644 (file)
@@ -53,18 +53,6 @@ int board_early_init_f(void)
 }
 #endif
 
-int arch_early_init_r(void)
-{
-#ifdef CONFIG_CROS_EC
-       if (cros_ec_board_init()) {
-               printf("%s: Failed to init EC\n", __func__);
-               return 0;
-       }
-#endif
-
-       return 0;
-}
-
 #ifdef CONFIG_BOARD_LATE_INIT
 int board_late_init(void)
 {
index 558ea2c173088d8acba1e7bf00446c00af8e3f6c..c49a847703f917f64c5f281ed5f7b08988971e98 100644 (file)
 
 #define CONFIG_BOOTARGS ""
 
-#define CONFIG_ARCH_EARLY_INIT_R
 #define CONFIG_BOARD_LATE_INIT
 
 #define CONFIG_SOUND