From: Nuno Sá <nuno.sa@xxxxxxxxxx> Make sure we get and enable the VDD supply (if available). Signed-off-by: Nuno Sá <nuno.sa@xxxxxxxxxx> --- drivers/mfd/adp5585.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mfd/adp5585.c b/drivers/mfd/adp5585.c index a96de4e6a3a12e2c91528835c2061795e6ff3ed0..8f95a02661880477e5eddb4248e92ee1bc69d674 100644 --- a/drivers/mfd/adp5585.c +++ b/drivers/mfd/adp5585.c @@ -17,6 +17,7 @@ #include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/regmap.h> +#include <linux/regulator/consumer.h> #include <linux/types.h> static const struct mfd_cell adp5585_devs[] = { @@ -848,6 +849,10 @@ static int adp5585_i2c_probe(struct i2c_client *i2c) adp5585->dev = &i2c->dev; adp5585->irq = i2c->irq; + ret = devm_regulator_get_enable(&i2c->dev, "vdd"); + if (ret) + return ret; + adp5585->regmap = devm_regmap_init_i2c(i2c, info->regmap_config); if (IS_ERR(adp5585->regmap)) return dev_err_probe(&i2c->dev, PTR_ERR(adp5585->regmap), -- 2.48.1