Commit 44f3d558 authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by David S. Miller

ravb: remove custom .set_link_ksettings from ethtool ops

The generic phy_ethtool_set_link_ksettings() function from phylib can
be used instead of in-house ravb_set_link_ksettings().
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 468e40b5
...@@ -1106,15 +1106,6 @@ static int ravb_phy_start(struct net_device *ndev) ...@@ -1106,15 +1106,6 @@ static int ravb_phy_start(struct net_device *ndev)
return 0; return 0;
} }
static int ravb_set_link_ksettings(struct net_device *ndev,
const struct ethtool_link_ksettings *cmd)
{
if (!ndev->phydev)
return -ENODEV;
return phy_ethtool_ksettings_set(ndev->phydev, cmd);
}
static u32 ravb_get_msglevel(struct net_device *ndev) static u32 ravb_get_msglevel(struct net_device *ndev)
{ {
struct ravb_private *priv = netdev_priv(ndev); struct ravb_private *priv = netdev_priv(ndev);
...@@ -1338,7 +1329,7 @@ static const struct ethtool_ops ravb_ethtool_ops = { ...@@ -1338,7 +1329,7 @@ static const struct ethtool_ops ravb_ethtool_ops = {
.set_ringparam = ravb_set_ringparam, .set_ringparam = ravb_set_ringparam,
.get_ts_info = ravb_get_ts_info, .get_ts_info = ravb_get_ts_info,
.get_link_ksettings = phy_ethtool_get_link_ksettings, .get_link_ksettings = phy_ethtool_get_link_ksettings,
.set_link_ksettings = ravb_set_link_ksettings, .set_link_ksettings = phy_ethtool_set_link_ksettings,
.get_wol = ravb_get_wol, .get_wol = ravb_get_wol,
.set_wol = ravb_set_wol, .set_wol = ravb_set_wol,
}; };
......
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