regulator: fixes for regulator_set_optimum_mode name change

Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
Stephen Rothwell 2015-03-10 13:44:41 +11:00 • committed by Mark Brown
commit 7e476c7dd8
2 changed files with 5 additions and 5 deletions

View file

@ -346,10 +346,10 @@ int ufs_qcom_phy_cfg_vreg(struct phy *phy,
goto out;
}
uA_load = on ? vreg->max_uA : 0;
ret = regulator_set_optimum_mode(reg, uA_load);
ret = regulator_set_load(reg, uA_load);
if (ret >= 0) {
/*
* regulator_set_optimum_mode() returns new regulator
* regulator_set_load() returns new regulator
* mode upon success.
*/
ret = 0;