diff options
Diffstat (limited to 'drivers/net/sc92031.c')
-rw-r--r-- | drivers/net/sc92031.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/sc92031.c b/drivers/net/sc92031.c index f3ffc1df3b2d..fa74314ef789 100644 --- a/drivers/net/sc92031.c +++ b/drivers/net/sc92031.c | |||
@@ -1173,7 +1173,8 @@ static int sc92031_ethtool_get_settings(struct net_device *dev, | |||
1173 | if (phy_ctrl & PhyCtrlAne) | 1173 | if (phy_ctrl & PhyCtrlAne) |
1174 | cmd->advertising |= ADVERTISED_Autoneg; | 1174 | cmd->advertising |= ADVERTISED_Autoneg; |
1175 | 1175 | ||
1176 | cmd->speed = (output_status & 0x2) ? SPEED_100 : SPEED_10; | 1176 | ethtool_cmd_speed_set(cmd, |
1177 | (output_status & 0x2) ? SPEED_100 : SPEED_10); | ||
1177 | cmd->duplex = (output_status & 0x4) ? DUPLEX_FULL : DUPLEX_HALF; | 1178 | cmd->duplex = (output_status & 0x4) ? DUPLEX_FULL : DUPLEX_HALF; |
1178 | cmd->port = PORT_MII; | 1179 | cmd->port = PORT_MII; |
1179 | cmd->phy_address = phy_address; | 1180 | cmd->phy_address = phy_address; |