aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/e1000/e1000_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 82d443ba3612..2b8bced0cf64 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -4174,7 +4174,7 @@ e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
4174 spin_unlock_irqrestore(&adapter->stats_lock, flags); 4174 spin_unlock_irqrestore(&adapter->stats_lock, flags);
4175 return -EIO; 4175 return -EIO;
4176 } 4176 }
4177 if (adapter->hw.phy_type == e1000_media_type_copper) { 4177 if (adapter->hw.media_type == e1000_media_type_copper) {
4178 switch (data->reg_num) { 4178 switch (data->reg_num) {
4179 case PHY_CTRL: 4179 case PHY_CTRL:
4180 if (mii_reg & MII_CR_POWER_DOWN) 4180 if (mii_reg & MII_CR_POWER_DOWN)