浏览代码

usb: dwc3: fix the error returned with usb3_phy failure

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>
Ruchika Kharwar 12 年之前
父节点
当前提交
315955d707
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/usb/dwc3/core.c

+ 1 - 1
drivers/usb/dwc3/core.c

@@ -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