diff options
| author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-10-16 10:58:24 +0100 |
|---|---|---|
| committer | Andrew Lunn <andrew@lunn.ch> | 2024-10-17 18:15:14 -0500 |
| commit | ecb595ebba0e72fd2137260281b3c773171c8317 (patch) | |
| tree | d354d68148ca5ede45a43a85396e973c8455b6b4 /net/dsa/port.c | |
| parent | net: ks8851: use %*ph to print small buffer (diff) | |
| download | linux-ecb595ebba0e72fd2137260281b3c773171c8317.tar.gz linux-ecb595ebba0e72fd2137260281b3c773171c8317.zip | |
net: dsa: remove dsa_port_phylink_mac_select_pcs()
There is no longer any reason to implement the mac_select_pcs()
callback in DSA. Returning ERR_PTR(-EOPNOTSUPP) is functionally
equivalent to not providing the function.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Diffstat (limited to 'net/dsa/port.c')
| -rw-r--r-- | net/dsa/port.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/dsa/port.c b/net/dsa/port.c index f1e96706a701..ee0aaec4c8e0 100644 --- a/net/dsa/port.c +++ b/net/dsa/port.c @@ -1575,13 +1575,6 @@ void dsa_port_set_tag_protocol(struct dsa_port *cpu_dp, cpu_dp->tag_ops = tag_ops; } -static struct phylink_pcs * -dsa_port_phylink_mac_select_pcs(struct phylink_config *config, - phy_interface_t interface) -{ - return ERR_PTR(-EOPNOTSUPP); -} - static void dsa_port_phylink_mac_config(struct phylink_config *config, unsigned int mode, const struct phylink_link_state *state) @@ -1604,7 +1597,6 @@ static void dsa_port_phylink_mac_link_up(struct phylink_config *config, } static const struct phylink_mac_ops dsa_port_phylink_mac_ops = { - .mac_select_pcs = dsa_port_phylink_mac_select_pcs, .mac_config = dsa_port_phylink_mac_config, .mac_link_down = dsa_port_phylink_mac_link_down, .mac_link_up = dsa_port_phylink_mac_link_up, |
