summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Juhos <j4g8y7@gmail.com>2026-02-21 12:02:37 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-03-11 16:59:42 +0300
commitbb24a1c09d7f848fb5a453b0ffc95a29b888907d (patch)
treeb6464d67ec32de98bdf02beca733155d7a03c705
parentdc3cf736a5cb63dea1158c267e168ca410d02fa4 (diff)
downloadlinux-bb24a1c09d7f848fb5a453b0ffc95a29b888907d.tar.xz
usb: ehci-orion: remove optional PHY handling code remnants
Since the USB core code handles the generic USB PHYs automatically, the optional PHY handling code has been removed from the 'ehci-orion' driver entirely by commit e04585184dcf ("usb: ehci-orion: avoid double PHY initialization"). However, the devm_phy_optional_get() call has been kept so the driver still gets the PHY even though it is not used for anything in the driver. Drop the remaining code, and also remove the 'phy' member of the 'orion_ehci_hcd' structure to simplify the code. Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Gabor Juhos <j4g8y7@gmail.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://patch.msgid.link/20260221-ehci-orion-drop-phy-handling-v2-1-5e26aa73790b@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/ehci-orion.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c
index 34abff8669f8..eaaa49712a8c 100644
--- a/drivers/usb/host/ehci-orion.c
+++ b/drivers/usb/host/ehci-orion.c
@@ -12,7 +12,6 @@
#include <linux/clk.h>
#include <linux/platform_data/usb-ehci-orion.h>
#include <linux/of.h>
-#include <linux/phy/phy.h>
#include <linux/usb.h>
#include <linux/usb/hcd.h>
#include <linux/io.h>
@@ -60,7 +59,6 @@
struct orion_ehci_hcd {
struct clk *clk;
- struct phy *phy;
};
static struct hc_driver __read_mostly ehci_orion_hc_driver;
@@ -276,13 +274,6 @@ static int ehci_orion_drv_probe(struct platform_device *pdev)
goto err_put_hcd;
}
- priv->phy = devm_phy_optional_get(&pdev->dev, "usb");
- if (IS_ERR(priv->phy)) {
- err = PTR_ERR(priv->phy);
- if (err != -ENOSYS)
- goto err_dis_clk;
- }
-
/*
* (Re-)program MBUS remapping windows if we are asked to.
*/