Skip to content

Commit

Permalink
Merge branch 'e1000-upstream' of git://198.78.49.142/linux-2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik committed Mar 11, 2006
2 parents 749dfc7 + cb76432 commit b962697
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4171,7 +4171,7 @@ e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
spin_unlock_irqrestore(&adapter->stats_lock, flags);
return -EIO;
}
if (adapter->hw.phy_type == e1000_phy_m88) {
if (adapter->hw.phy_type == e1000_media_type_copper) {
switch (data->reg_num) {
case PHY_CTRL:
if (mii_reg & MII_CR_POWER_DOWN)
Expand All @@ -4187,8 +4187,8 @@ e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
else
spddplx = SPEED_10;
spddplx += (mii_reg & 0x100)
? FULL_DUPLEX :
HALF_DUPLEX;
? DUPLEX_FULL :
DUPLEX_HALF;
retval = e1000_set_spd_dplx(adapter,
spddplx);
if (retval) {
Expand Down

0 comments on commit b962697

Please sign in to comment.