diff options
| author | Russell King (Oracle) <[email protected]> | 2024-10-03 11:52:17 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-10-07 23:23:10 +0000 |
| commit | 539770616521e5b046ca7612eb79ba11b53edb1d (patch) | |
| tree | 9e4076d4294a5e9f83f8cd8d08b09550d3c0350c /net/dsa/dsa.c | |
| parent | net: tcp: refresh tcp_mstamp for compressed ack in timer (diff) | |
| download | kernel-539770616521e5b046ca7612eb79ba11b53edb1d.tar.gz kernel-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) <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Tested-by: Vladimir Oltean <[email protected]> # sja1105, felix, dsa_loop
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
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) |
