diff options
-rw-r--r-- | drivers/net/bnx2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index cffdec3d5b5a..89681b30b890 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -6172,6 +6172,7 @@ bnx2_suspend(struct pci_dev *pdev, pm_message_t state) | |||
6172 | reset_code = BNX2_DRV_MSG_CODE_SUSPEND_NO_WOL; | 6172 | reset_code = BNX2_DRV_MSG_CODE_SUSPEND_NO_WOL; |
6173 | bnx2_reset_chip(bp, reset_code); | 6173 | bnx2_reset_chip(bp, reset_code); |
6174 | bnx2_free_skbs(bp); | 6174 | bnx2_free_skbs(bp); |
6175 | pci_save_state(pdev); | ||
6175 | bnx2_set_power_state(bp, pci_choose_state(pdev, state)); | 6176 | bnx2_set_power_state(bp, pci_choose_state(pdev, state)); |
6176 | return 0; | 6177 | return 0; |
6177 | } | 6178 | } |
@@ -6185,6 +6186,7 @@ bnx2_resume(struct pci_dev *pdev) | |||
6185 | if (!netif_running(dev)) | 6186 | if (!netif_running(dev)) |
6186 | return 0; | 6187 | return 0; |
6187 | 6188 | ||
6189 | pci_restore_state(pdev); | ||
6188 | bnx2_set_power_state(bp, PCI_D0); | 6190 | bnx2_set_power_state(bp, PCI_D0); |
6189 | netif_device_attach(dev); | 6191 | netif_device_attach(dev); |
6190 | bnx2_init_nic(bp); | 6192 | bnx2_init_nic(bp); |