diff mbox

[U-Boot,v2,10/17] x86: cros_ec: Drop unnecessary init

Message ID 1427383781-7151-11-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/coreboot/coreboot/coreboot.c  | 5 -----
 board/google/chromebook_link/link.c | 3 ---
 2 files changed, 8 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/coreboot/coreboot/coreboot.c  | 5 -----
>  board/google/chromebook_link/link.c | 3 ---
>  2 files changed, 8 deletions(-)

Applied to u-boot-dm/next
diff mbox

Patch

diff --git a/board/coreboot/coreboot/coreboot.c b/board/coreboot/coreboot/coreboot.c
index e076ea6..7110f35 100644
--- a/board/coreboot/coreboot/coreboot.c
+++ b/board/coreboot/coreboot/coreboot.c
@@ -10,11 +10,6 @@ 
 
 int arch_early_init_r(void)
 {
-#ifdef CONFIG_CROS_EC
-	if (cros_ec_board_init())
-		return -1;
-#endif
-
 	return 0;
 }
 
diff --git a/board/google/chromebook_link/link.c b/board/google/chromebook_link/link.c
index 8c04cb8..1b97a8f 100644
--- a/board/google/chromebook_link/link.c
+++ b/board/google/chromebook_link/link.c
@@ -22,9 +22,6 @@  int arch_early_init_r(void)
 	if (ret)
 		return ret;
 
-	if (cros_ec_board_init())
-		return -1;
-
 	return 0;
 }