Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253958
b: refs/heads/master
c: a5f76d5
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed Jun 21, 2011
1 parent 46ac9f7 commit 070686c
Show file tree
Hide file tree
Showing 2 changed files with 4 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: ca9c6890b598997165a7c85c001f382c910f12b0
refs/heads/master: a5f76d5eba157bf637beb2dd18026db2917c512e
4 changes: 3 additions & 1 deletion trunk/drivers/pci/pci-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ static int pci_pm_prepare(struct device *dev)
* system from the sleep state, we'll have to prevent it from signaling
* wake-up.
*/
pm_runtime_resume(dev);
pm_runtime_get_sync(dev);

if (drv && drv->pm && drv->pm->prepare)
error = drv->pm->prepare(dev);
Expand All @@ -638,6 +638,8 @@ static void pci_pm_complete(struct device *dev)

if (drv && drv->pm && drv->pm->complete)
drv->pm->complete(dev);

pm_runtime_put_sync(dev);
}

#else /* !CONFIG_PM_SLEEP */
Expand Down

0 comments on commit 070686c

Please sign in to comment.