diff options
-rw-r--r-- | drivers/usb/chipidea/ci_hdrc_imx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index 2e58f8dfd311..65444b02bd68 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c | |||
@@ -133,6 +133,9 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev) | |||
133 | data->phy = devm_usb_get_phy_by_phandle(&pdev->dev, "fsl,usbphy", 0); | 133 | data->phy = devm_usb_get_phy_by_phandle(&pdev->dev, "fsl,usbphy", 0); |
134 | if (IS_ERR(data->phy)) { | 134 | if (IS_ERR(data->phy)) { |
135 | ret = PTR_ERR(data->phy); | 135 | ret = PTR_ERR(data->phy); |
136 | /* Return -EINVAL if no usbphy is available */ | ||
137 | if (ret == -ENODEV) | ||
138 | ret = -EINVAL; | ||
136 | goto err_clk; | 139 | goto err_clk; |
137 | } | 140 | } |
138 | 141 | ||