Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45043
b: refs/heads/master
c: 1a63e84
h: refs/heads/master
i:
  45041: 58a9bf7
  45039: 8db77da
v: v3
  • Loading branch information
Brice Goglin authored and Jeff Garzik committed Dec 26, 2006
1 parent 0a82278 commit 7f1f155
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 83f6e1524586119df84f70b7127688c57349664a
refs/heads/master: 1a63e846a4099e6fbff86a3b112064378515f254
12 changes: 7 additions & 5 deletions trunk/drivers/net/myri10ge/myri10ge.c
Original file line number Diff line number Diff line change
Expand Up @@ -2540,8 +2540,8 @@ static int myri10ge_suspend(struct pci_dev *pdev, pm_message_t state)
myri10ge_dummy_rdma(mgp, 0);
pci_save_state(pdev);
pci_disable_device(pdev);
pci_set_power_state(pdev, pci_choose_state(pdev, state));
return 0;

return pci_set_power_state(pdev, pci_choose_state(pdev, state));
}

static int myri10ge_resume(struct pci_dev *pdev)
Expand All @@ -2564,12 +2564,14 @@ static int myri10ge_resume(struct pci_dev *pdev)
return -EIO;
}

pci_restore_state(pdev);
status = pci_restore_state(pdev);
if (status)
return status;

status = pci_enable_device(pdev);
if (status < 0) {
if (status) {
dev_err(&pdev->dev, "failed to enable device\n");
return -EIO;
return status;
}

pci_set_master(pdev);
Expand Down

0 comments on commit 7f1f155

Please sign in to comment.