From: Kever Yang Date: Wed, 12 Apr 2017 04:00:06 +0000 (+0800) Subject: rockchip: rk3399: use regulators_enable_boot_on() to init regulator X-Git-Tag: v2017.07-rc1~356^2~64 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=400b4acf1e341d4da19cc1148389dcb40abfbe12;p=u-boot 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 Acked-by: Simon Glass --- diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399.c index 362fa0bc6e..6561c4fbd3 100644 --- a/board/rockchip/evb_rk3399/evb-rk3399.c +++ b/board/rockchip/evb_rk3399/evb-rk3399.c @@ -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", ®ulator); + 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", ®ulator); if (ret) {