Skip to content

Commit

Permalink
net: usb: lan78xx: Utilize phy_ethtool_nway_reset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Nov 15, 2016
1 parent eea16da commit 860ce4b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/net/usb/lan78xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -1655,7 +1650,7 @@ static int lan78xx_set_pause(struct net_device *net,

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,
Expand Down

0 comments on commit 860ce4b

Please sign in to comment.