regulator: Fix build error

3d67fe9507 (regulator: core: Refactor regulator_list_voltage()) missed
one user of regulator_list_voltage(), update for that.

Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Mark Brown 2018-01-26 17:55:30 +00:00
parent 285c22de37
commit 00cb9f4f5e
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0

View file

@ -2980,7 +2980,7 @@ static int regulator_set_voltage_unlocked(struct regulator *regulator,
goto out2;
}
best_supply_uV = _regulator_list_voltage(regulator, selector, 0);
best_supply_uV = _regulator_list_voltage(rdev, selector, 0);
if (best_supply_uV < 0) {
ret = best_supply_uV;
goto out2;