rockchip: rk3399: use regulators_enable_boot_on() to init regulator

Use regulators_enable_boot_on() instead of init regulators one by one,
the interface can init all the regulators with regulator-boot-on property.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Kever Yang 2017-04-12 12:00:06 +08:00 committed by Simon Glass
parent 05b8dc5cd3
commit 400b4acf1e

View File

@ -40,10 +40,9 @@ int board_init(void)
goto out;
}
/* rk3399 need init vdd_center to get correct output voltage */
ret = regulator_get_by_platname("vdd_center", &regulator);
ret = regulators_enable_boot_on(false);
if (ret)
debug("%s: Cannot get vdd_center regulator\n", __func__);
debug("%s: Cannot enable boot on regulator\n", __func__);
ret = regulator_get_by_platname("vcc5v0_host", &regulator);
if (ret) {