From: Simon Glass Date: Tue, 24 Feb 2015 06:24:04 -0700 Subject: [U-Boot] [PATCH 09/16] sandbox: cros_ec: Drop unnecessary init In-Reply-To: <1424784251-19808-1-git-send-email-sjg@chromium.org> References: <1424784251-19808-1-git-send-email-sjg@chromium.org> Message-ID: <1424784251-19808-10-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- board/sandbox/sandbox.c | 12 ------------ include/configs/sandbox.h | 1 - 2 files changed, 13 deletions(-) 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 6a4b701..e0e2d72 100644 --- a/include/configs/sandbox.h +++ b/include/configs/sandbox.h @@ -148,7 +148,6 @@ #define CONFIG_CROS_EC #define CONFIG_CMD_CROS_EC #define CONFIG_CROS_EC_SANDBOX -#define CONFIG_ARCH_EARLY_INIT_R #define CONFIG_BOARD_LATE_INIT #define CONFIG_SOUND -- 2.2.0.rc0.207.ga3a616c