Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56229
b: refs/heads/master
c: 549a68c
h: refs/heads/master
i:
  56227: de0fa16
v: v3
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed May 11, 2007
1 parent de71405 commit 2eec0e5
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 4093785dd16d0b7058eb92331bfd7b40b12151f3
refs/heads/master: 549a68c3fe2ca320b0764d1289d17af797daa5d1
10 changes: 10 additions & 0 deletions trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3732,6 +3732,7 @@ static int __devinit sky2_probe(struct pci_dev *pdev,
err_out_disable:
pci_disable_device(pdev);
err_out:
pci_set_drvdata(pdev, NULL);
return err;
}

Expand Down Expand Up @@ -3784,6 +3785,9 @@ static int sky2_suspend(struct pci_dev *pdev, pm_message_t state)
struct sky2_hw *hw = pci_get_drvdata(pdev);
int i, wol = 0;

if (!hw)
return 0;

del_timer_sync(&hw->idle_timer);
netif_poll_disable(hw->dev[0]);

Expand Down Expand Up @@ -3815,6 +3819,9 @@ static int sky2_resume(struct pci_dev *pdev)
struct sky2_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 @@ -3861,6 +3868,9 @@ static void sky2_shutdown(struct pci_dev *pdev)
struct sky2_hw *hw = pci_get_drvdata(pdev);
int i, wol = 0;

if (!hw)
return;

del_timer_sync(&hw->idle_timer);
netif_poll_disable(hw->dev[0]);

Expand Down

0 comments on commit 2eec0e5

Please sign in to comment.