"VDDQ_EMMC_1.8V",
"VDDQ_EMMC_2.8V",
"TFLASH_2.8V",
+ NULL,
};
void set_board_type(void)
int exynos_power_init(void)
{
- int list_count = ARRAY_SIZE(mmc_regulators);
-
- if (regulator_list_autoset(mmc_regulators, list_count, NULL, true))
+ if (regulator_list_autoset(mmc_regulators, NULL, true))
error("Unable to init all mmc regulators");
return 0;
struct udevice *dev;
int ret;
- ret = regulator_by_platname("VDD_UOTG_3.0V", &dev);
+ ret = regulator_get_by_platname("VDD_UOTG_3.0V", &dev);
if (ret) {
error("Regulator get error: %d", ret);
return ret;
/* Power off and on BUCK8 for LAN9730 */
debug("LAN9730 - Turning power buck 8 OFF and ON.\n");
- ret = regulator_by_platname("VCC_P3V3_2.85V", &dev);
+ ret = regulator_get_by_platname("VCC_P3V3_2.85V", &dev);
if (ret) {
error("Regulator get error: %d", ret);
return ret;