regulator: Fix build error
authorMark Brown <broonie@kernel.org>
Fri, 26 Jan 2018 17:55:30 +0000 (17:55 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jan 2018 17:55:30 +0000 (17:55 +0000)
3d67fe950707 (regulator: core: Refactor regulator_list_voltage()) missed
one user of regulator_list_voltage(), update for that.

Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c

index 2dccc4b3766ea473812b78fbac3a9913403a22bf..42681c10cbe4fa9f7f001be90ff60dcdd3cf0db8 100644 (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;