Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

net: usb: lan78xx: Utilize phy_ethtool_nway_reset

parent eea16da8
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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 @@ 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,