Skip to content

Commit

Permalink
regulator: Fix build error
Browse files Browse the repository at this point in the history
3d67fe9 (regulator: core: Refactor regulator_list_voltage()) missed
one user of regulator_list_voltage(), update for that.

Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Mark Brown committed Jan 26, 2018
1 parent 285c22d commit 00cb9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 00cb9f4

Please sign in to comment.