mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
net: lan743x: use netdev in lan743x_phylink_mac_link_down()
Use the netdev that we already have in lan743x_phylink_mac_link_down(). Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Link: https://patch.msgid.link/E1tYAE5-0014Q5-Up@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
b53b14786e
commit
a66447966f
|
|
@ -3029,7 +3029,7 @@ static void lan743x_phylink_mac_link_down(struct phylink_config *config,
|
|||
struct net_device *netdev = to_net_dev(config->dev);
|
||||
struct lan743x_adapter *adapter = netdev_priv(netdev);
|
||||
|
||||
netif_tx_stop_all_queues(to_net_dev(config->dev));
|
||||
netif_tx_stop_all_queues(netdev);
|
||||
lan743x_mac_eee_enable(adapter, false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user