usb: dwc3: Fix error return code in dwc3_qcom_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 6 Jun 2018 14:22:24 +0000 (14:22 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 19 Jun 2018 09:48:12 +0000 (12:48 +0300)
commit93ef2dc0c4f7acf4253882a03c11f2ca8e41f387
tree5cc3151f7fa1f4d9842283132010669762ef6b05
parent21cbbc6bb7b4ba6aee303a3b4aef1578253724d8
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: a4333c3a6ba9 ("usb: dwc3: Add Qualcomm DWC3 glue driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/dwc3-qcom.c