Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102671
b: refs/heads/master
c: f735a2a
h: refs/heads/master
i:
  102669: 7c9146e
  102667: 962cc3e
  102663: 943033c
  102655: 7910183
v: v3
  • Loading branch information
Tobias Diedrich authored and Jeff Garzik committed May 31, 2008
1 parent 8bfa1c3 commit b7bb690
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2914f3efa7ef80f12ff798cb1aa46af57838f912
refs/heads/master: f735a2a1a4f2a0f5cd823ce323e82675990469e2
16 changes: 16 additions & 0 deletions trunk/drivers/net/forcedeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -5827,8 +5827,23 @@ static int nv_resume(struct pci_dev *pdev)
out:
return rc;
}

static void nv_shutdown(struct pci_dev *pdev)
{
struct net_device *dev = pci_get_drvdata(pdev);
struct fe_priv *np = netdev_priv(dev);

if (netif_running(dev))
nv_close(dev);

pci_enable_wake(pdev, PCI_D3hot, np->wolenabled);
pci_enable_wake(pdev, PCI_D3cold, np->wolenabled);
pci_disable_device(pdev);
pci_set_power_state(pdev, PCI_D3hot);
}
#else
#define nv_suspend NULL
#define nv_shutdown NULL
#define nv_resume NULL
#endif /* CONFIG_PM */

Expand Down Expand Up @@ -5999,6 +6014,7 @@ static struct pci_driver driver = {
.remove = __devexit_p(nv_remove),
.suspend = nv_suspend,
.resume = nv_resume,
.shutdown = nv_shutdown,
};

static int __init init_nic(void)
Expand Down

0 comments on commit b7bb690

Please sign in to comment.