mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-08-19 21:05:09 +00:00
r8169: use phy_ethtool_nway_reset
Switch to using phy_ethtool_nway_reset(). Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4577243392
commit
dd84957eee
2 changed files with 1 additions and 9 deletions
|
|
@ -100,7 +100,6 @@ config R8169
|
||||||
select FW_LOADER
|
select FW_LOADER
|
||||||
select CRC32
|
select CRC32
|
||||||
select PHYLIB
|
select PHYLIB
|
||||||
select MII
|
|
||||||
---help---
|
---help---
|
||||||
Say Y here if you have a Realtek 8169 PCI Gigabit Ethernet adapter.
|
Say Y here if you have a Realtek 8169 PCI Gigabit Ethernet adapter.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1984,13 +1984,6 @@ static void rtl8169_get_strings(struct net_device *dev, u32 stringset, u8 *data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rtl8169_nway_reset(struct net_device *dev)
|
|
||||||
{
|
|
||||||
struct rtl8169_private *tp = netdev_priv(dev);
|
|
||||||
|
|
||||||
return mii_nway_restart(&tp->mii);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Interrupt coalescing
|
* Interrupt coalescing
|
||||||
*
|
*
|
||||||
|
|
@ -2221,7 +2214,7 @@ static const struct ethtool_ops rtl8169_ethtool_ops = {
|
||||||
.get_sset_count = rtl8169_get_sset_count,
|
.get_sset_count = rtl8169_get_sset_count,
|
||||||
.get_ethtool_stats = rtl8169_get_ethtool_stats,
|
.get_ethtool_stats = rtl8169_get_ethtool_stats,
|
||||||
.get_ts_info = ethtool_op_get_ts_info,
|
.get_ts_info = ethtool_op_get_ts_info,
|
||||||
.nway_reset = rtl8169_nway_reset,
|
.nway_reset = phy_ethtool_nway_reset,
|
||||||
.get_link_ksettings = phy_ethtool_get_link_ksettings,
|
.get_link_ksettings = phy_ethtool_get_link_ksettings,
|
||||||
.set_link_ksettings = phy_ethtool_set_link_ksettings,
|
.set_link_ksettings = phy_ethtool_set_link_ksettings,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue