diff options
Diffstat (limited to 'drivers/power/regulator/regulator_common.c')
-rw-r--r-- | drivers/power/regulator/regulator_common.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/power/regulator/regulator_common.c b/drivers/power/regulator/regulator_common.c index 939efb2c0d..33b73b7c2f 100644 --- a/drivers/power/regulator/regulator_common.c +++ b/drivers/power/regulator/regulator_common.c @@ -12,16 +12,11 @@ int regulator_common_ofdata_to_platdata(struct udevice *dev, struct regulator_common_platdata *dev_pdata, const char *enable_gpio_name) { struct gpio_desc *gpio; - struct dm_regulator_uclass_platdata *uc_pdata; int flags = GPIOD_IS_OUT; int ret; - uc_pdata = dev_get_uclass_platdata(dev); - if (!dev_read_bool(dev, "enable-active-high")) flags |= GPIOD_ACTIVE_LOW; - if (uc_pdata->boot_on) - flags |= GPIOD_IS_OUT_ACTIVE; /* Get optional enable GPIO desc */ gpio = &dev_pdata->gpio; |