aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-omap.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2018-04-18 11:26:21 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-22 15:58:23 +0200
commite90308a65c34c3632883e0a826b5f70c57ae8baf (patch)
tree9962cc7be4b0fefb12bfd707198bb022780e5a4d /drivers/usb/host/ehci-omap.c
parentUSB: core: hcd: drop support for legacy phys (diff)
downloadlinux-dev-e90308a65c34c3632883e0a826b5f70c57ae8baf.tar.xz
linux-dev-e90308a65c34c3632883e0a826b5f70c57ae8baf.zip
USB: ehci-omap: drop unused legacy phy support
Drop support for looking up legacy phys defined by board files, something which hasn't been used by a mainline kernel since commit 9080b8dc761a ("ARM: OMAP2+: Remove legacy usb-host.c platform init code"). Specifically, since that commit usb_get_phy_dev() have always returned -ENODEV and consequently this code has not been used. Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-omap.c')
-rw-r--r--drivers/usb/host/ehci-omap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index 8d8bafc70c1f..7e4c13346a1e 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -157,10 +157,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
struct usb_phy *phy;
/* get the PHY device */
- if (dev->of_node)
- phy = devm_usb_get_phy_by_phandle(dev, "phys", i);
- else
- phy = devm_usb_get_phy_dev(dev, i);
+ phy = devm_usb_get_phy_by_phandle(dev, "phys", i);
if (IS_ERR(phy)) {
/* Don't bail out if PHY is not absolutely necessary */
if (pdata->port_mode[i] != OMAP_EHCI_PORT_MODE_PHY)