Commit 4c10628a authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by David S. Miller

sh_eth: remove custom .nway_reset from ethtool ops

The generic phy_ethtool_nway_reset() function from phylib can be used
instead of in-house sh_eth_nway_reset().
Signed-off-by: default avatarVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Reviewed-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e0afa103
...@@ -2244,14 +2244,6 @@ static void sh_eth_get_regs(struct net_device *ndev, struct ethtool_regs *regs, ...@@ -2244,14 +2244,6 @@ static void sh_eth_get_regs(struct net_device *ndev, struct ethtool_regs *regs,
pm_runtime_put_sync(&mdp->pdev->dev); pm_runtime_put_sync(&mdp->pdev->dev);
} }
static int sh_eth_nway_reset(struct net_device *ndev)
{
if (!ndev->phydev)
return -ENODEV;
return phy_restart_aneg(ndev->phydev);
}
static u32 sh_eth_get_msglevel(struct net_device *ndev) static u32 sh_eth_get_msglevel(struct net_device *ndev)
{ {
struct sh_eth_private *mdp = netdev_priv(ndev); struct sh_eth_private *mdp = netdev_priv(ndev);
...@@ -2402,7 +2394,7 @@ static int sh_eth_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) ...@@ -2402,7 +2394,7 @@ static int sh_eth_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol)
static const struct ethtool_ops sh_eth_ethtool_ops = { static const struct ethtool_ops sh_eth_ethtool_ops = {
.get_regs_len = sh_eth_get_regs_len, .get_regs_len = sh_eth_get_regs_len,
.get_regs = sh_eth_get_regs, .get_regs = sh_eth_get_regs,
.nway_reset = sh_eth_nway_reset, .nway_reset = phy_ethtool_nway_reset,
.get_msglevel = sh_eth_get_msglevel, .get_msglevel = sh_eth_get_msglevel,
.set_msglevel = sh_eth_set_msglevel, .set_msglevel = sh_eth_set_msglevel,
.get_link = ethtool_op_get_link, .get_link = ethtool_op_get_link,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment