]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: phy: remove phy_driver_is_genphy_10g
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 14 Jun 2025 20:32:47 +0000 (22:32 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Jun 2025 01:15:16 +0000 (18:15 -0700)
Remove now unused function phy_driver_is_genphy_10g().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/49b0589a-9604-4ee9-add5-28fbbbe2c2f3@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy_device.c
include/linux/phy.h

index fa0890ebf2eae71da0d3dc92397dd5d86dfde3e3..1c3a27b73d7bc4235ce4de10608a4b36b9555ddf 100644 (file)
@@ -1713,29 +1713,6 @@ struct phy_device *phy_attach(struct net_device *dev, const char *bus_id,
 }
 EXPORT_SYMBOL(phy_attach);
 
-static bool phy_driver_is_genphy_kind(struct phy_device *phydev,
-                                     struct device_driver *driver)
-{
-       struct device *d = &phydev->mdio.dev;
-       bool ret = false;
-
-       if (!phydev->drv)
-               return ret;
-
-       get_device(d);
-       ret = d->driver == driver;
-       put_device(d);
-
-       return ret;
-}
-
-bool phy_driver_is_genphy_10g(struct phy_device *phydev)
-{
-       return phy_driver_is_genphy_kind(phydev,
-                                        &genphy_c45_driver.mdiodrv.driver);
-}
-EXPORT_SYMBOL_GPL(phy_driver_is_genphy_10g);
-
 /**
  * phy_detach - detach a PHY device from its network device
  * @phydev: target phy_device struct
index 97a09e5743ef5b8b4324a9adb43b5f09e5c18008..b037aab7b71dd0f0f145c14d50dbb5d98e21a8c3 100644 (file)
@@ -2108,6 +2108,4 @@ module_exit(phy_module_exit)
 #define module_phy_driver(__phy_drivers)                               \
        phy_module_driver(__phy_drivers, ARRAY_SIZE(__phy_drivers))
 
-bool phy_driver_is_genphy_10g(struct phy_device *phydev);
-
 #endif /* __PHY_H */