diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-05-28 17:05:09 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-05-30 03:41:15 +0200 |
commit | bbb31b7ae14594aa2a7e74923ee38f312404ad66 (patch) | |
tree | 8d54e12b6fe46adaaaf5981ee945f10fb647b320 /net/dsa/dsa.c | |
parent | Merge branch 'doc-netlink-fixes-for-ynl-doc-generator' (diff) | |
download | linux-bbb31b7ae14594aa2a7e74923ee38f312404ad66.tar.xz linux-bbb31b7ae14594aa2a7e74923ee38f312404ad66.zip |
net: dsa: remove mac_prepare()/mac_finish() shims
No DSA driver makes use of the mac_prepare()/mac_finish() shimmed
operations anymore, so we can remove these.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/E1sByNx-00ELW1-Vp@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 | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 12521a7d4048..668c729946ea 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c @@ -1507,9 +1507,7 @@ static int dsa_switch_probe(struct dsa_switch *ds) if (ds->phylink_mac_ops) { if (ds->ops->phylink_mac_select_pcs || - ds->ops->phylink_mac_prepare || ds->ops->phylink_mac_config || - ds->ops->phylink_mac_finish || ds->ops->phylink_mac_link_down || ds->ops->phylink_mac_link_up) return -EINVAL; |