usb: chipidea: imx: "fsl,usbphy" phandle is not mandatory now

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>
This commit is contained in:
Peter Chen 2019-05-07 09:53:55 +08:00
parent d1609c312d
commit ed5a419bb0
1 changed files with 3 additions and 2 deletions

View 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;