Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127417
b: refs/heads/master
c: c9b9972
h: refs/heads/master
i:
  127415: 591dbab
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Jesse Barnes committed Jan 7, 2009
1 parent 780b372 commit 5da023c
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 987a4c783a8bbf3baf554e6b8ff588b26e06e020
refs/heads/master: c9b9972b3c88272be02d971346285d1c67fbb95f
10 changes: 5 additions & 5 deletions trunk/drivers/pci/pci-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,6 @@ static int pci_pm_poweroff(struct device *dev)
struct device_driver *drv = dev->driver;
int error = 0;

pci_fixup_device(pci_fixup_suspend, pci_dev);

if (drv && drv->pm) {
if (drv->pm->poweroff) {
error = drv->pm->poweroff(dev);
Expand All @@ -622,6 +620,8 @@ static int pci_pm_poweroff(struct device *dev)
error = pci_legacy_suspend(dev, PMSG_HIBERNATE);
}

pci_fixup_device(pci_fixup_suspend, pci_dev);

return error;
}

Expand All @@ -648,6 +648,8 @@ static int pci_pm_restore(struct device *dev)
struct device_driver *drv = dev->driver;
int error = 0;

pci_fixup_device(pci_fixup_resume, pci_dev);

if (drv && drv->pm) {
if (drv->pm->restore)
error = drv->pm->restore(dev);
Expand All @@ -656,7 +658,6 @@ static int pci_pm_restore(struct device *dev)
} else {
error = pci_default_pm_resume_late(pci_dev);
}
pci_fixup_device(pci_fixup_resume, pci_dev);

return error;
}
Expand All @@ -667,7 +668,7 @@ static int pci_pm_restore_noirq(struct device *dev)
struct device_driver *drv = dev->driver;
int error = 0;

pci_fixup_device(pci_fixup_resume, pci_dev);
pci_fixup_device(pci_fixup_resume_early, pci_dev);

if (drv && drv->pm) {
if (drv->pm->restore_noirq)
Expand All @@ -677,7 +678,6 @@ static int pci_pm_restore_noirq(struct device *dev)
} else {
pci_default_pm_resume_early(pci_dev);
}
pci_fixup_device(pci_fixup_resume_early, pci_dev);

return error;
}
Expand Down

0 comments on commit 5da023c

Please sign in to comment.