diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-10-03 12:52:17 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-10-07 16:23:10 -0700 |
commit | 539770616521e5b046ca7612eb79ba11b53edb1d (patch) | |
tree | 9e4076d4294a5e9f83f8cd8d08b09550d3c0350c /net/dsa/dsa.c | |
parent | 269084f748524fa1a3fb8eb530eb70f77e7c3e4a (diff) | |
download | linux-539770616521e5b046ca7612eb79ba11b53edb1d.tar.gz linux-539770616521e5b046ca7612eb79ba11b53edb1d.tar.bz2 linux-539770616521e5b046ca7612eb79ba11b53edb1d.zip |
net: dsa: remove obsolete phylink dsa_switch operations
No driver now uses the DSA switch phylink members, so we can now remove
the method pointers, but we need to leave empty shim functions to allow
those drivers that do not provide phylink MAC operations structure to
continue functioning.
Signed-off-by: Russell King (oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com> # sja1105, felix, dsa_loop
Link: https://patch.msgid.link/E1swKNV-0060oN-1b@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/dsa/dsa.c')
-rw-r--r-- | net/dsa/dsa.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 1664547deffd..5a7c0e565a89 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@ -1505,14 +1505,6 @@ static int dsa_switch_probe(struct dsa_switch *ds) if (!ds->num_ports) return -EINVAL; - if (ds->phylink_mac_ops) { - if (ds->ops->phylink_mac_select_pcs || - ds->ops->phylink_mac_config || - ds->ops->phylink_mac_link_down || - ds->ops->phylink_mac_link_up) - return -EINVAL; - } - if (np) { err = dsa_switch_parse_of(ds, np); if (err) |