aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/igb')
-rw-r--r--drivers/net/igb/igb_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index f23a0487bf13..cfed2b07f3a4 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -1372,7 +1372,8 @@ static void __devexit igb_remove(struct pci_dev *pdev)
1372 1372
1373 unregister_netdev(netdev); 1373 unregister_netdev(netdev);
1374 1374
1375 if (!igb_check_reset_block(&adapter->hw)) 1375 if (adapter->hw.phy.ops.reset_phy &&
1376 !igb_check_reset_block(&adapter->hw))
1376 adapter->hw.phy.ops.reset_phy(&adapter->hw); 1377 adapter->hw.phy.ops.reset_phy(&adapter->hw);
1377 1378
1378 igb_remove_device(&adapter->hw); 1379 igb_remove_device(&adapter->hw);