summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorIvan T. Ivanov <iivanov@mm-sol.com>2014-04-28 15:34:09 +0200
committerFelipe Balbi <balbi@ti.com>2014-04-30 18:28:42 +0200
commitf7ddad47421669452186678d51c09a3778ab552f (patch)
tree5b52a49629b80e69fe307e6554dc158ff52d5934 /drivers/usb
parentusb: phy: msm: Migrate to Managed Device Resource allocation (diff)
downloadlinux-f7ddad47421669452186678d51c09a3778ab552f.tar.xz
linux-f7ddad47421669452186678d51c09a3778ab552f.zip
usb: phy: msm: Remove unnecessarily check for valid regulators.
Whether regulators are available or not is checked at driver probe. If they are not available driver will refuse to load, so no need to check them again. Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/phy/phy-msm-usb.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c
index 67705fcc4b2a..d7b83600a7da 100644
--- a/drivers/usb/phy/phy-msm-usb.c
+++ b/drivers/usb/phy/phy-msm-usb.c
@@ -133,16 +133,6 @@ static int msm_hsusb_ldo_set_mode(struct msm_otg *motg, int on)
{
int ret = 0;
- if (!motg->v1p8 || IS_ERR(motg->v1p8)) {
- pr_err("%s: HSUSB_1p8 is not initialized\n", __func__);
- return -ENODEV;
- }
-
- if (!motg->v3p3 || IS_ERR(motg->v3p3)) {
- pr_err("%s: HSUSB_3p3 is not initialized\n", __func__);
- return -ENODEV;
- }
-
if (on) {
ret = regulator_set_optimum_mode(motg->v1p8,
USB_PHY_1P8_HPM_LOAD);