]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net: usb: lan78xx: Utilize phy_ethtool_nway_reset
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 15 Nov 2016 18:06:44 +0000 (10:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Nov 2016 21:33:35 +0000 (16:33 -0500)
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>
drivers/net/usb/lan78xx.c

index bcd9010c1f270a03706234240b4b1a1baebf50a2..cf2857fa938f228c90926af0cdc66217a3e40864 100644 (file)
@@ -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,