Commit 93ef2dc0 authored by Wei Yongjun's avatar Wei Yongjun Committed by Felipe Balbi

usb: dwc3: Fix error return code in dwc3_qcom_probe()

Fix to return error code -ENODEV from the get device failed error
handling case instead of 0, as done elsewhere in this function.

Fixes: a4333c3a ("usb: dwc3: Add Qualcomm DWC3 glue driver")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 21cbbc6b
...@@ -490,6 +490,7 @@ static int dwc3_qcom_probe(struct platform_device *pdev) ...@@ -490,6 +490,7 @@ static int dwc3_qcom_probe(struct platform_device *pdev)
qcom->dwc3 = of_find_device_by_node(dwc3_np); qcom->dwc3 = of_find_device_by_node(dwc3_np);
if (!qcom->dwc3) { if (!qcom->dwc3) {
dev_err(&pdev->dev, "failed to get dwc3 platform device\n"); dev_err(&pdev->dev, "failed to get dwc3 platform device\n");
ret = -ENODEV;
goto depopulate; goto depopulate;
} }
......
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