exynos_power_init sets up regulators for the emmc and sdcard, but
these regulators are already marked as always-on and boot-on and hence
are handled already by the regulator-uclass. Since we currently try to
set them up twice we get error -114 (EALREADY) from exynos_power_init
on every boot:

    LDO20@VDDQ_EMMC_1.8V: set 1800000 uV; enabling (ret: -114)
    LDO22@VDDQ_EMMC_2.8V: set 2800000 uV; enabling (ret: -114)
    LDO21@TFLASH_2.8V: set 2800000 uV; enabling (ret: -114)

Remove the superfluous exynos_power_init to silence these errors.

Signed-off-by: Henrik Grimler <hen...@grimler.se>
---
 board/samsung/odroid/odroid.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/board/samsung/odroid/odroid.c b/board/samsung/odroid/odroid.c
index 
84d6d919f07f33fa4122910db31973a97358f29d..a48b8e94b77ce9b10f3e1937020b4f33a28c30b1
 100644
--- a/board/samsung/odroid/odroid.c
+++ b/board/samsung/odroid/odroid.c
@@ -428,21 +428,6 @@ void exynos_init(void)
        board_gpio_init();
 }
 
-int exynos_power_init(void)
-{
-       const char *mmc_regulators[] = {
-               "VDDQ_EMMC_1.8V",
-               "VDDQ_EMMC_2.8V",
-               "TFLASH_2.8V",
-               NULL,
-       };
-
-       if (regulator_list_autoset(mmc_regulators, NULL, true))
-               pr_err("Unable to init all mmc regulators\n");
-
-       return 0;
-}
-
 #ifdef CONFIG_USB_GADGET
 static int s5pc210_phy_control(int on)
 {

-- 
2.50.1

Reply via email to