Skip to content

Commit 8b6b7c1

Browse files
Russell King (Oracle)davem330
authored andcommitted
net: altera: tse: remove mac_an_restart() function
The mac_an_restart() method will only be called if the driver sets legacy_pre_march2020, which the altera tse driver does not do. Therefore, providing a stub is unnecessary. Fixes: fef2998 ("net: altera: tse: convert to phylink") Signed-off-by: Russell King (Oracle) <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent dbb99d7 commit 8b6b7c1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/net/ethernet/altera/altera_tse_main.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,10 +1036,6 @@ static struct net_device_ops altera_tse_netdev_ops = {
10361036
.ndo_validate_addr = eth_validate_addr,
10371037
};
10381038

1039-
static void alt_tse_mac_an_restart(struct phylink_config *config)
1040-
{
1041-
}
1042-
10431039
static void alt_tse_mac_config(struct phylink_config *config, unsigned int mode,
10441040
const struct phylink_link_state *state)
10451041
{
@@ -1096,7 +1092,6 @@ static struct phylink_pcs *alt_tse_select_pcs(struct phylink_config *config,
10961092
}
10971093

10981094
static const struct phylink_mac_ops alt_tse_phylink_ops = {
1099-
.mac_an_restart = alt_tse_mac_an_restart,
11001095
.mac_config = alt_tse_mac_config,
11011096
.mac_link_down = alt_tse_mac_link_down,
11021097
.mac_link_up = alt_tse_mac_link_up,

0 commit comments

Comments
 (0)