usb: chipidea: imx: "fsl,usbphy" phandle is not mandatory now
authorPeter Chen <peter.chen@nxp.com>
Tue, 7 May 2019 01:53:55 +0000 (09:53 +0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 14 Jun 2019 09:39:53 +0000 (17:39 +0800)
Since the chipidea common code support get the USB PHY phandle from
"phys", the glue layer is not mandatory to get the "fsl,usbphy" phandle
any more.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/ci_hdrc_imx.c

index a76708501236d75d880f8eda15d64909013802ae..b5abfe89190cf28070d05c75bd3703b54d06a6b2 100644 (file)
@@ -398,8 +398,9 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
                ret = PTR_ERR(data->phy);
                /* Return -EINVAL if no usbphy is available */
                if (ret == -ENODEV)
-                       ret = -EINVAL;
-               goto err_clk;
+                       data->phy = NULL;
+               else
+                       goto err_clk;
        }
 
        pdata.usb_phy = data->phy;