diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 35a7785c53f65163b5fdd01e1cb7f2d5a0ea089c..c661be129818c27c27b078df380aa9fe0961ad35 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1002,7 +1002,7 @@ static int drms_uA_update(struct regulator_dev *rdev) /* get input voltage */ input_uV = 0; if (rdev->supply) - input_uV = regulator_get_voltage(rdev->supply); + input_uV = regulator_get_voltage_rdev(rdev->supply->rdev); if (input_uV <= 0) input_uV = rdev->constraints->input_uV;