Commit 1d61a694 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Mark Brown

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: default avatarBjorn Andersson <bjorn.andersson@sonymobile.com>
Acked-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7b16a07c
...@@ -277,7 +277,7 @@ static void ab8500_usb_regulator_enable(struct ab8500_usb *ab) ...@@ -277,7 +277,7 @@ static void ab8500_usb_regulator_enable(struct ab8500_usb *ab)
dev_err(ab->dev, "Failed to set the Vintcore to 1.3V, ret=%d\n", dev_err(ab->dev, "Failed to set the Vintcore to 1.3V, ret=%d\n",
ret); ret);
ret = regulator_set_optimum_mode(ab->v_ulpi, 28000); ret = regulator_set_load(ab->v_ulpi, 28000);
if (ret < 0) if (ret < 0)
dev_err(ab->dev, "Failed to set optimum mode (ret=%d)\n", dev_err(ab->dev, "Failed to set optimum mode (ret=%d)\n",
ret); ret);
...@@ -317,7 +317,7 @@ static void ab8500_usb_regulator_disable(struct ab8500_usb *ab) ...@@ -317,7 +317,7 @@ static void ab8500_usb_regulator_disable(struct ab8500_usb *ab)
ab->saved_v_ulpi, ret); ab->saved_v_ulpi, ret);
} }
ret = regulator_set_optimum_mode(ab->v_ulpi, 0); ret = regulator_set_load(ab->v_ulpi, 0);
if (ret < 0) if (ret < 0)
dev_err(ab->dev, "Failed to set optimum mode (ret=%d)\n", dev_err(ab->dev, "Failed to set optimum mode (ret=%d)\n",
ret); ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment