Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56230
b: refs/heads/master
c: e3b7df1
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed May 11, 2007
1 parent 2eec0e5 commit 2b96b07
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 549a68c3fe2ca320b0764d1289d17af797daa5d1
refs/heads/master: e3b7df17c8344fbcc00e871e03f5f88d58905277
9 changes: 9 additions & 0 deletions trunk/drivers/net/skge.c
Original file line number Diff line number Diff line change
Expand Up @@ -3802,6 +3802,9 @@ static int skge_suspend(struct pci_dev *pdev, pm_message_t state)
struct skge_hw *hw = pci_get_drvdata(pdev);
int i, err, wol = 0;

if (!hw)
return 0;

err = pci_save_state(pdev);
if (err)
return err;
Expand Down Expand Up @@ -3830,6 +3833,9 @@ static int skge_resume(struct pci_dev *pdev)
struct skge_hw *hw = pci_get_drvdata(pdev);
int i, err;

if (!hw)
return 0;

err = pci_set_power_state(pdev, PCI_D0);
if (err)
goto out;
Expand Down Expand Up @@ -3868,6 +3874,9 @@ static void skge_shutdown(struct pci_dev *pdev)
struct skge_hw *hw = pci_get_drvdata(pdev);
int i, wol = 0;

if (!hw)
return;

for (i = 0; i < hw->ports; i++) {
struct net_device *dev = hw->dev[i];
struct skge_port *skge = netdev_priv(dev);
Expand Down

0 comments on commit 2b96b07

Please sign in to comment.