Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139009
b: refs/heads/master
c: 931ff68
h: refs/heads/master
i:
  139007: 588d1b5
v: v3
  • Loading branch information
Rafael J. Wysocki committed Mar 30, 2009
1 parent 42ef4c4 commit 0fa70eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 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: 4a865905f685eaefaedf6ade362323dc52aa703b
refs/heads/master: 931ff68a5a53fa84bcdf9b1b179a80e54e034bd0
16 changes: 9 additions & 7 deletions trunk/drivers/pci/pci-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,13 +516,13 @@ static int pci_pm_suspend(struct device *dev)
if (pci_has_legacy_pm_support(pci_dev))
return pci_legacy_suspend(dev, PMSG_SUSPEND);

pci_dev->state_saved = false;

if (!pm) {
pci_pm_default_suspend(pci_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 @@ -554,8 +554,10 @@ static int pci_pm_suspend_noirq(struct device *dev)
if (pci_has_legacy_pm_support(pci_dev))
return pci_legacy_suspend_late(dev, PMSG_SUSPEND);

if (!pm)
if (!pm) {
pci_save_state(pci_dev);
return 0;
}

if (pm->suspend_noirq) {
pci_power_t prev = pci_dev->current_state;
Expand Down Expand Up @@ -650,13 +652,13 @@ static int pci_pm_freeze(struct device *dev)
if (pci_has_legacy_pm_support(pci_dev))
return pci_legacy_suspend(dev, PMSG_FREEZE);

pci_dev->state_saved = false;

if (!pm) {
pci_pm_default_suspend(pci_dev);
return 0;
}

pci_dev->state_saved = false;

if (pm->freeze) {
int error;

Expand Down Expand Up @@ -738,13 +740,13 @@ static int pci_pm_poweroff(struct device *dev)
if (pci_has_legacy_pm_support(pci_dev))
return pci_legacy_suspend(dev, PMSG_HIBERNATE);

pci_dev->state_saved = false;

if (!pm) {
pci_pm_default_suspend(pci_dev);
goto Fixup;
}

pci_dev->state_saved = false;

if (pm->poweroff) {
int error;

Expand Down

0 comments on commit 0fa70eb

Please sign in to comment.