Fixed u-boot v2021.07 compilation for Helios64 [AR-973]

This commit is contained in:
Piotr Szczepanik 2021-11-14 22:03:00 +01:00
parent c10cf6edb7
commit f93fd61ce9
No known key found for this signature in database
GPG Key ID: 0305358EB314F205

View File

@ -1519,14 +1519,14 @@ index 00000000..c7a0efa4
+static void init_vdd_center(void)
+{
+ struct udevice *regulator;
+ struct dm_regulator_uclass_platdata *uc_pdata;
+ struct dm_regulator_uclass_plat *uc_pdata;
+ int ret;
+
+ ret = regulator_get_by_platname("vdd_center", &regulator);
+ if (ret)
+ return;
+
+ uc_pdata = dev_get_uclass_platdata(regulator);
+ uc_pdata = dev_get_uclass_plat(regulator);
+ ret = regulator_set_value(regulator, uc_pdata->init_uV);
+ if (ret)
+ debug("%s vdd_center init fail! ret %d\n", __func__, ret);