Skip to content

Commit

Permalink
net: ethernet: ucc: 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>
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 11d5928 commit e06986f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions drivers/net/ethernet/freescale/ucc_geth_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,6 @@ static void uec_get_ethtool_stats(struct net_device *netdev,
}
}

static int uec_nway_reset(struct net_device *netdev)
{
struct ucc_geth_private *ugeth = netdev_priv(netdev);

return phy_start_aneg(ugeth->phydev);
}

/* Report driver information */
static void
uec_get_drvinfo(struct net_device *netdev,
Expand Down Expand Up @@ -394,7 +387,7 @@ static const struct ethtool_ops uec_ethtool_ops = {
.get_regs = uec_get_regs,
.get_msglevel = uec_get_msglevel,
.set_msglevel = uec_set_msglevel,
.nway_reset = uec_nway_reset,
.nway_reset = phy_ethtool_nway_reset,
.get_link = ethtool_op_get_link,
.get_ringparam = uec_get_ringparam,
.set_ringparam = uec_set_ringparam,
Expand Down

0 comments on commit e06986f

Please sign in to comment.