]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: dsa: qca: remove qca8k_get_mac_eee()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 6 Jan 2025 11:59:19 +0000 (11:59 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Jan 2025 02:06:18 +0000 (18:06 -0800)
qca8k_get_mac_eee() is no longer called by the core DSA code. Remove it.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1tUllP-007UzF-Gk@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/qca/qca8k-8xxx.c
drivers/net/dsa/qca/qca8k-common.c
drivers/net/dsa/qca/qca8k.h

index 90e24bc00b99cca1f65ed1df8b06713d7002e029..2d56a81524208486a9b38dbc65bbcc413843174f 100644 (file)
@@ -2017,7 +2017,6 @@ static const struct dsa_switch_ops qca8k_switch_ops = {
        .get_sset_count         = qca8k_get_sset_count,
        .set_ageing_time        = qca8k_set_ageing_time,
        .support_eee            = dsa_supports_eee,
-       .get_mac_eee            = qca8k_get_mac_eee,
        .set_mac_eee            = qca8k_set_mac_eee,
        .port_enable            = qca8k_port_enable,
        .port_disable           = qca8k_port_disable,
index 560c74c4ac3dd44ec1f0a0967a39d61e12f2f66b..13005f10edb7d6d302194e94ca526cce14110514 100644 (file)
@@ -557,13 +557,6 @@ exit:
        return ret;
 }
 
-int qca8k_get_mac_eee(struct dsa_switch *ds, int port,
-                     struct ethtool_keee *e)
-{
-       /* Nothing to do on the port's MAC */
-       return 0;
-}
-
 static int qca8k_port_configure_learning(struct dsa_switch *ds, int port,
                                         bool learning)
 {
index 24962a395754c1f12de58d11cdc97e5fe5f0d046..d046679265fa4e8992db16b3c39b4d64252d5ffd 100644 (file)
@@ -520,7 +520,6 @@ int qca8k_get_sset_count(struct dsa_switch *ds, int port, int sset);
 
 /* Common eee function */
 int qca8k_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *eee);
-int qca8k_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e);
 
 /* Common bridge function */
 void qca8k_port_stp_state_set(struct dsa_switch *ds, int port, u8 state);