Commit 860ce4b4 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

net: usb: lan78xx: Utilize phy_ethtool_nway_reset

Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Acked-by: default avatarWoojung Huh <woojung.huh@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eea16da8
...@@ -1447,11 +1447,6 @@ static u32 lan78xx_get_link(struct net_device *net) ...@@ -1447,11 +1447,6 @@ static u32 lan78xx_get_link(struct net_device *net)
return net->phydev->link; 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, static void lan78xx_get_drvinfo(struct net_device *net,
struct ethtool_drvinfo *info) struct ethtool_drvinfo *info)
{ {
...@@ -1655,7 +1650,7 @@ static int lan78xx_set_pause(struct net_device *net, ...@@ -1655,7 +1650,7 @@ static int lan78xx_set_pause(struct net_device *net,
static const struct ethtool_ops lan78xx_ethtool_ops = { static const struct ethtool_ops lan78xx_ethtool_ops = {
.get_link = lan78xx_get_link, .get_link = lan78xx_get_link,
.nway_reset = lan78xx_nway_reset, .nway_reset = phy_ethtool_nway_reset,
.get_drvinfo = lan78xx_get_drvinfo, .get_drvinfo = lan78xx_get_drvinfo,
.get_msglevel = lan78xx_get_msglevel, .get_msglevel = lan78xx_get_msglevel,
.set_msglevel = lan78xx_set_msglevel, .set_msglevel = lan78xx_set_msglevel,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment