Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358437
b: refs/heads/master
c: 82fee4d
h: refs/heads/master
i:
  358435: b214ec3
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Bjorn Helgaas committed Feb 12, 2013
1 parent 80135d2 commit 8c682a5
Show file tree
Hide file tree
Showing 2 changed files with 5 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: cc7ba39bab126339d6d525ada07dea5633d71521
refs/heads/master: 82fee4d67ab86d6fe5eb0f9a9e988ca9d654d765
4 changes: 4 additions & 0 deletions trunk/drivers/pci/pci-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ static int pci_pm_suspend(struct device *dev)
goto Fixup;
}

pci_dev->state_saved = false;
if (pm->suspend) {
pci_power_t prev = pci_dev->current_state;
int error;
Expand Down Expand Up @@ -774,6 +775,7 @@ static int pci_pm_freeze(struct device *dev)
return 0;
}

pci_dev->state_saved = false;
if (pm->freeze) {
int error;

Expand Down Expand Up @@ -862,6 +864,7 @@ static int pci_pm_poweroff(struct device *dev)
goto Fixup;
}

pci_dev->state_saved = false;
if (pm->poweroff) {
int error;

Expand Down Expand Up @@ -987,6 +990,7 @@ static int pci_pm_runtime_suspend(struct device *dev)
if (!pm || !pm->runtime_suspend)
return -ENOSYS;

pci_dev->state_saved = false;
pci_dev->no_d3cold = false;
error = pm->runtime_suspend(dev);
suspend_report_result(pm->runtime_suspend, error);
Expand Down

0 comments on commit 8c682a5

Please sign in to comment.