aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/phy/phy-ab8500-usb.c4
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);