diff options
author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2015-02-11 22:35:29 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-09 14:32:45 -0400 |
commit | 1d61a6948121d73e897df0f96a0fd8aa3b3b1ac9 (patch) | |
tree | ae094141dd544f530f0590389f1e43b6587c242c | |
parent | 7b16a07c32935ea7f59f4408b7c9200d9cd0cced (diff) |
usb: phy: ab8500-usb: Rename regulator_set_optimum_mode
The function regulator_set_optimum_mode() is changing name to
regulator_set_load(), so update the code accordingly.
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/usb/phy/phy-ab8500-usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-ab8500-usb.c b/drivers/usb/phy/phy-ab8500-usb.c index 0b1bd2369293..f5b3b928941b 100644 --- a/drivers/usb/phy/phy-ab8500-usb.c +++ b/drivers/usb/phy/phy-ab8500-usb.c | |||
@@ -277,7 +277,7 @@ static void ab8500_usb_regulator_enable(struct ab8500_usb *ab) | |||
277 | dev_err(ab->dev, "Failed to set the Vintcore to 1.3V, ret=%d\n", | 277 | dev_err(ab->dev, "Failed to set the Vintcore to 1.3V, ret=%d\n", |
278 | ret); | 278 | ret); |
279 | 279 | ||
280 | ret = regulator_set_optimum_mode(ab->v_ulpi, 28000); | 280 | ret = regulator_set_load(ab->v_ulpi, 28000); |
281 | if (ret < 0) | 281 | if (ret < 0) |
282 | dev_err(ab->dev, "Failed to set optimum mode (ret=%d)\n", | 282 | dev_err(ab->dev, "Failed to set optimum mode (ret=%d)\n", |
283 | ret); | 283 | ret); |
@@ -317,7 +317,7 @@ static void ab8500_usb_regulator_disable(struct ab8500_usb *ab) | |||
317 | ab->saved_v_ulpi, ret); | 317 | ab->saved_v_ulpi, ret); |
318 | } | 318 | } |
319 | 319 | ||
320 | ret = regulator_set_optimum_mode(ab->v_ulpi, 0); | 320 | ret = regulator_set_load(ab->v_ulpi, 0); |
321 | if (ret < 0) | 321 | if (ret < 0) |
322 | dev_err(ab->dev, "Failed to set optimum mode (ret=%d)\n", | 322 | dev_err(ab->dev, "Failed to set optimum mode (ret=%d)\n", |
323 | ret); | 323 | ret); |