mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
net: usb: lan78xx: Utilize phy_ethtool_nway_reset
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Woojung Huh <woojung.huh@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
eea16da82c
commit
860ce4b401
1 changed files with 1 additions and 6 deletions
|
@ -1447,11 +1447,6 @@ static u32 lan78xx_get_link(struct net_device *net)
|
|||
return net->phydev->link;
|
||||
}
|
||||
|
||||
static int lan78xx_nway_reset(struct net_device *net)
|
||||
{
|
||||
return phy_start_aneg(net->phydev);
|
||||
}
|
||||
|
||||
static void lan78xx_get_drvinfo(struct net_device *net,
|
||||
struct ethtool_drvinfo *info)
|
||||
{
|
||||
|
@ -1655,7 +1650,7 @@ exit:
|
|||
|
||||
static const struct ethtool_ops lan78xx_ethtool_ops = {
|
||||
.get_link = lan78xx_get_link,
|
||||
.nway_reset = lan78xx_nway_reset,
|
||||
.nway_reset = phy_ethtool_nway_reset,
|
||||
.get_drvinfo = lan78xx_get_drvinfo,
|
||||
.get_msglevel = lan78xx_get_msglevel,
|
||||
.set_msglevel = lan78xx_set_msglevel,
|
||||
|
|
Loading…
Add table
Reference in a new issue