aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2012-02-13 10:20:14 -0500
committerDavid S. Miller <davem@davemloft.net>2012-02-13 20:45:06 -0500
commit2855b9fe416e55d01a1946b142d87abd4cceb6ea (patch)
tree8538634dec96b1f086c23ee60ee565d138b681cf /drivers/net/ethernet
parent42b123b1297d10e79bd75bc665058122161f368d (diff)
tg3: Remove unused link config code
When tg3 devices are shutdown, the driver uses the TG3_PHYFLG_IS_LOW_POWER flag to enable a static phy configuration. Any attempt to use the link configuration variables is dead code. This patch removes such code. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/broadcom/tg3.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
index 27cf74c74792..610997cec7c9 100644
--- a/drivers/net/ethernet/broadcom/tg3.c
+++ b/drivers/net/ethernet/broadcom/tg3.c
@@ -3607,12 +3607,8 @@ static int tg3_power_down_prepare(struct tg3 *tp)
3607 tp->link_config.orig_autoneg = tp->link_config.autoneg; 3607 tp->link_config.orig_autoneg = tp->link_config.autoneg;
3608 } 3608 }
3609 3609
3610 if (!(tp->phy_flags & TG3_PHYFLG_ANY_SERDES)) { 3610 if (!(tp->phy_flags & TG3_PHYFLG_ANY_SERDES))
3611 tp->link_config.speed = SPEED_10;
3612 tp->link_config.duplex = DUPLEX_HALF;
3613 tp->link_config.autoneg = AUTONEG_ENABLE;
3614 tg3_setup_phy(tp, 0); 3611 tg3_setup_phy(tp, 0);
3615 }
3616 } 3612 }
3617 3613
3618 if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906) { 3614 if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906) {