usb: phy: msm: Remove unnecessarily check for valid regulators.
authorIvan T. Ivanov <iivanov@mm-sol.com>
Mon, 28 Apr 2014 13:34:09 +0000 (16:34 +0300)
committerFelipe Balbi <balbi@ti.com>
Wed, 30 Apr 2014 16:28:42 +0000 (11:28 -0500)
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>
drivers/usb/phy/phy-msm-usb.c

index 67705fcc4b2a36252be750a3b24da7aaa4bc11c6..d7b83600a7dafc788353b93f87f29f52b0f138bc 100644 (file)
@@ -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);
This page took 0.039608 seconds and 5 git commands to generate.