diff mbox

[U-Boot,v2,09/17] sandbox: cros_ec: Drop unnecessary init

Message ID 1427383781-7151-10-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass March 26, 2015, 3:29 p.m. UTC
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>
---

Changes in v2: None

 board/sandbox/sandbox.c   | 12 ------------
 include/configs/sandbox.h |  1 -
 2 files changed, 13 deletions(-)

Comments

Simon Glass April 1, 2015, 3:16 a.m. UTC | #1
On 26 March 2015 at 09:29, Simon Glass <sjg@chromium.org> wrote:
> 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>
> ---
>
> Changes in v2: None
>
>  board/sandbox/sandbox.c   | 12 ------------
>  include/configs/sandbox.h |  1 -
>  2 files changed, 13 deletions(-)

Applied to u-boot-dm/next
diff mbox

Patch

diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c
index e4d4e02..2227f1c 100644
--- a/board/sandbox/sandbox.c
+++ b/board/sandbox/sandbox.c
@@ -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)
 {
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index 558ea2c..c49a847 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -151,7 +151,6 @@ 
 
 #define CONFIG_BOOTARGS ""
 
-#define CONFIG_ARCH_EARLY_INIT_R
 #define CONFIG_BOARD_LATE_INIT
 
 #define CONFIG_SOUND