summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-mv.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-12-21 07:50:07 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-30 20:11:28 +0100
commitcf94ca4993e59a52be5639d37517fa26ca8d7322 (patch)
tree94ab89b5432d6ee8a3af0064325eef7acbc59f6b /drivers/usb/host/ehci-mv.c
parentMerge 5.5-rc3 into usb-next (diff)
downloadlinux-cf94ca4993e59a52be5639d37517fa26ca8d7322.tar.xz
linux-cf94ca4993e59a52be5639d37517fa26ca8d7322.zip
USB: EHCI: ehci-mv: make the PHY optional
We may be using a NOP transceiver and those are treated specially by the USB core and return -ENODEV with devm_phy_get(). Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Acked-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/20191221065008.266445-3-lkundrak@v3.sk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-mv.c')
-rw-r--r--drivers/usb/host/ehci-mv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c
index 66ec1fdf9fe7..d476a2516bf6 100644
--- a/drivers/usb/host/ehci-mv.c
+++ b/drivers/usb/host/ehci-mv.c
@@ -116,7 +116,7 @@ static int mv_ehci_probe(struct platform_device *pdev)
ehci_mv->set_vbus = pdata->set_vbus;
}
- ehci_mv->phy = devm_phy_get(&pdev->dev, "usb");
+ ehci_mv->phy = devm_phy_optional_get(&pdev->dev, "usb");
if (IS_ERR(ehci_mv->phy)) {
retval = PTR_ERR(ehci_mv->phy);
if (retval != -EPROBE_DEFER)