]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: stmmac: remove speed_mode_2500() method
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 1 May 2025 11:45:27 +0000 (12:45 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 3 May 2025 01:25:08 +0000 (18:25 -0700)
Remove the speed_mode_2500() platform method which is no longer used
or necessary, being superseded by the more flexible get_interfaces()
method.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/E1uASM3-0021R3-2B@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
include/linux/stmmac.h

index 5f66f816a24964a6a1311142d1ed6d38ba83817d..28b62bd73e2312cefb4b33cd95051ed37be0af52 100644 (file)
@@ -7736,9 +7736,6 @@ int stmmac_dvr_probe(struct device *device,
                goto error_mdio_register;
        }
 
-       if (priv->plat->speed_mode_2500)
-               priv->plat->speed_mode_2500(ndev, priv->plat->bsp_priv);
-
        ret = stmmac_pcs_setup(ndev);
        if (ret)
                goto error_pcs_setup;
index 537bced69c46ee957ea9182e6d5455a7354a0656..26ddf95d23f95490327d3edefb307d243d4b5e7e 100644 (file)
@@ -241,7 +241,6 @@ struct plat_stmmacenet_data {
        int (*fix_soc_reset)(void *priv, void __iomem *ioaddr);
        int (*serdes_powerup)(struct net_device *ndev, void *priv);
        void (*serdes_powerdown)(struct net_device *ndev, void *priv);
-       void (*speed_mode_2500)(struct net_device *ndev, void *priv);
        int (*mac_finish)(struct net_device *ndev,
                          void *priv,
                          unsigned int mode,