]> git.sur5r.net Git - u-boot/commitdiff
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 e076ea69cfa159d5a378bf8f1b1dfc20f1dca8e0..7110f350d5806045f9a9a484117a318dc1a1fdba 100644 (file)
 
 int arch_early_init_r(void)
 {
-#ifdef CONFIG_CROS_EC
-       if (cros_ec_board_init())
-               return -1;
-#endif
-
        return 0;
 }
 
index 8c04cb82802fc9b47bd84b56751e714904d6c00b..1b97a8fea85537307764cbb6731f9d4afffb966d 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;
 }