summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorPeter Chen2019-05-07 03:53:55 +0200
committerPeter Chen2019-06-14 11:39:53 +0200
commited5a419bb0195c4f79ccbb85d6bd3ae3ad0a8ac7 (patch)
tree055743f9df433bf0a7956375edf683d3ed1f9597 /drivers/usb
parentusb: chipidea: imx: add imx7ulp support (diff)
downloadkernel-qcow2-linux-ed5a419bb0195c4f79ccbb85d6bd3ae3ad0a8ac7.tar.gz
kernel-qcow2-linux-ed5a419bb0195c4f79ccbb85d6bd3ae3ad0a8ac7.tar.xz
kernel-qcow2-linux-ed5a419bb0195c4f79ccbb85d6bd3ae3ad0a8ac7.zip
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/chipidea/ci_hdrc_imx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
index a76708501236..b5abfe89190c 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.c
+++ b/drivers/usb/chipidea/ci_hdrc_imx.c
@@ -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;