OSDN Git Service

usb: dwc3: fix the error returned with usb3_phy failure
authorRuchika Kharwar <ruchika@ti.com>
Thu, 4 Jul 2013 05:59:34 +0000 (00:59 -0500)
committerFelipe Balbi <balbi@ti.com>
Mon, 15 Jul 2013 10:00:24 +0000 (13:00 +0300)
When there is an error with the usb3_phy probe or absence, the error returned
is erroneously for usb2_phy.

Cc: <stable@vger.kernel.org>
Signed-off-by: Ruchika Kharwar <ruchika@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c

index c35d49d..358375e 100644 (file)
@@ -450,7 +450,7 @@ static int dwc3_probe(struct platform_device *pdev)
        }
 
        if (IS_ERR(dwc->usb3_phy)) {
-               ret = PTR_ERR(dwc->usb2_phy);
+               ret = PTR_ERR(dwc->usb3_phy);
 
                /*
                 * if -ENXIO is returned, it means PHY layer wasn't