mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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
9080b8dc76
("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>
This commit is contained in:
parent
bc40f53417
commit
e90308a65c
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue