diff --git a/drivers/power/regulator/regulator_common.c b/drivers/power/regulator/regulator_common.c index 3ed713ce501..685d8735fa5 100644 --- a/drivers/power/regulator/regulator_common.c +++ b/drivers/power/regulator/regulator_common.c @@ -44,16 +44,6 @@ int regulator_common_of_to_plat(struct udevice *dev, dev_read_u32_default(dev, "u-boot,off-on-delay-us", 0); } - ret = device_get_supply_regulator(dev, "vin-supply", &plat->vin_supply); - if (ret) { - debug("Regulator vin regulator not defined: %d\n", ret); - if (ret != -ENOENT) - return ret; - } - - if (plat->vin_supply) - regulator_set_enable_if_allowed(plat->vin_supply, true); - return 0; } diff --git a/drivers/power/regulator/regulator_common.h b/drivers/power/regulator/regulator_common.h index 799c968d0b6..d4962899d83 100644 --- a/drivers/power/regulator/regulator_common.h +++ b/drivers/power/regulator/regulator_common.h @@ -14,7 +14,6 @@ struct regulator_common_plat { unsigned int startup_delay_us; unsigned int off_on_delay_us; unsigned int enable_count; - struct udevice *vin_supply; }; int regulator_common_of_to_plat(struct udevice *dev,