Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130797
b: refs/heads/master
c: 545ffd5
h: refs/heads/master
i:
  130795: 2b5a08d
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Jesse Barnes committed Jan 27, 2009
1 parent fa55752 commit 4355b0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 57064d213d2e44654d4f13c66df135b5e7389a26
refs/heads/master: 545ffd58adc86b8d33449dab44fe81b503a6f81b
5 changes: 4 additions & 1 deletion trunk/drivers/pci/pci-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,10 @@ static int pci_pm_poweroff(struct device *dev)
if (pci_has_legacy_pm_support(pci_dev))
return pci_legacy_suspend(dev, PMSG_HIBERNATE);

if (drv && drv->pm && drv->pm->poweroff) {
if (!drv || !drv->pm)
return 0;

if (drv->pm->poweroff) {
error = drv->pm->poweroff(dev);
suspend_report_result(drv->pm->poweroff, error);
}
Expand Down

0 comments on commit 4355b0e

Please sign in to comment.