Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26991
b: refs/heads/master
c: 80871e6
h: refs/heads/master
i:
  26989: e73bb2b
  26987: 8035b47
  26983: d5a85ec
  26975: a062af8
v: v3
  • Loading branch information
Auke Kok authored and Jeff Garzik committed May 27, 2006
1 parent a4b72b1 commit a2fcf37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8fc29ba65bd669b8f23a46b4760f3ba773e2a635
refs/heads/master: 80871e63e410c53524ef47eaf475c13e0f164ea6
10 changes: 9 additions & 1 deletion trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ static void e1000_restore_vlan(struct e1000_adapter *adapter);
static int e1000_suspend(struct pci_dev *pdev, pm_message_t state);
static int e1000_resume(struct pci_dev *pdev);
#endif
static void e1000_shutdown(struct pci_dev *pdev);

#ifdef CONFIG_NET_POLL_CONTROLLER
/* for netdump / net console */
Expand All @@ -235,8 +236,9 @@ static struct pci_driver e1000_driver = {
/* Power Managment Hooks */
#ifdef CONFIG_PM
.suspend = e1000_suspend,
.resume = e1000_resume
.resume = e1000_resume,
#endif
.shutdown = e1000_shutdown
};

MODULE_AUTHOR("Intel Corporation, <linux.nics@intel.com>");
Expand Down Expand Up @@ -4611,6 +4613,12 @@ e1000_resume(struct pci_dev *pdev)
return 0;
}
#endif

static void e1000_shutdown(struct pci_dev *pdev)
{
e1000_suspend(pdev, PMSG_SUSPEND);
}

#ifdef CONFIG_NET_POLL_CONTROLLER
/*
* Polling 'interrupt' - used by things like netconsole to send skbs
Expand Down

0 comments on commit a2fcf37

Please sign in to comment.