x86: cros_ec: Drop unnecessary init
authorSimon Glass <sjg@chromium.org>
Thu, 26 Mar 2015 15:29:34 +0000 (09:29 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:15 +0000 (11:11 -0600)
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/coreboot/coreboot/coreboot.c
board/google/chromebook_link/link.c

index e076ea6..7110f35 100644 (file)
 
 int arch_early_init_r(void)
 {
-#ifdef CONFIG_CROS_EC
-       if (cros_ec_board_init())
-               return -1;
-#endif
-
        return 0;
 }
 
index 8c04cb8..1b97a8f 100644 (file)
@@ -22,9 +22,6 @@ int arch_early_init_r(void)
        if (ret)
                return ret;
 
-       if (cros_ec_board_init())
-               return -1;
-
        return 0;
 }