Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: ethernet: ixp4xx_eth: Utilize phy_ethtool_nway_reset

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Florian Fainelli and committed by
David S. Miller
17fc4637 16250527

+1 -6
+1 -6
drivers/net/ethernet/xscale/ixp4xx_eth.c
··· 1001 1001 strlcpy(info->bus_info, "internal", sizeof(info->bus_info)); 1002 1002 } 1003 1003 1004 - static int ixp4xx_nway_reset(struct net_device *dev) 1005 - { 1006 - return phy_start_aneg(dev->phydev); 1007 - } 1008 - 1009 1004 int ixp46x_phc_index = -1; 1010 1005 EXPORT_SYMBOL_GPL(ixp46x_phc_index); 1011 1006 ··· 1032 1037 1033 1038 static const struct ethtool_ops ixp4xx_ethtool_ops = { 1034 1039 .get_drvinfo = ixp4xx_get_drvinfo, 1035 - .nway_reset = ixp4xx_nway_reset, 1040 + .nway_reset = phy_ethtool_nway_reset, 1036 1041 .get_link = ethtool_op_get_link, 1037 1042 .get_ts_info = ixp4xx_get_ts_info, 1038 1043 .get_link_ksettings = phy_ethtool_get_link_ksettings,