|
@@ -509,8 +509,8 @@ int phy_ethtool_ksettings_set(struct phy_device *phydev,
|
|
|
}
|
|
|
EXPORT_SYMBOL(phy_ethtool_ksettings_set);
|
|
|
|
|
|
-int phy_ethtool_ksettings_get(struct phy_device *phydev,
|
|
|
- struct ethtool_link_ksettings *cmd)
|
|
|
+void phy_ethtool_ksettings_get(struct phy_device *phydev,
|
|
|
+ struct ethtool_link_ksettings *cmd)
|
|
|
{
|
|
|
ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported,
|
|
|
phydev->supported);
|
|
@@ -532,8 +532,6 @@ int phy_ethtool_ksettings_get(struct phy_device *phydev,
|
|
|
cmd->base.autoneg = phydev->autoneg;
|
|
|
cmd->base.eth_tp_mdix_ctrl = phydev->mdix_ctrl;
|
|
|
cmd->base.eth_tp_mdix = phydev->mdix;
|
|
|
-
|
|
|
- return 0;
|
|
|
}
|
|
|
EXPORT_SYMBOL(phy_ethtool_ksettings_get);
|
|
|
|
|
@@ -1449,7 +1447,9 @@ int phy_ethtool_get_link_ksettings(struct net_device *ndev,
|
|
|
if (!phydev)
|
|
|
return -ENODEV;
|
|
|
|
|
|
- return phy_ethtool_ksettings_get(phydev, cmd);
|
|
|
+ phy_ethtool_ksettings_get(phydev, cmd);
|
|
|
+
|
|
|
+ return 0;
|
|
|
}
|
|
|
EXPORT_SYMBOL(phy_ethtool_get_link_ksettings);
|
|
|
|