|
@@ -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);
|
|
@@ -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 */
|