diff options
Diffstat (limited to 'drivers/base/power/main.c')
-rw-r--r-- | drivers/base/power/main.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index 6efef9fb23a1..0e26a6f6fd48 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c | |||
@@ -1046,3 +1046,14 @@ void __suspend_report_result(const char *function, void *fn, int ret) | |||
1046 | printk(KERN_ERR "%s(): %pF returns %d\n", function, fn, ret); | 1046 | printk(KERN_ERR "%s(): %pF returns %d\n", function, fn, ret); |
1047 | } | 1047 | } |
1048 | EXPORT_SYMBOL_GPL(__suspend_report_result); | 1048 | EXPORT_SYMBOL_GPL(__suspend_report_result); |
1049 | |||
1050 | /** | ||
1051 | * device_pm_wait_for_dev - Wait for suspend/resume of a device to complete. | ||
1052 | * @dev: Device to wait for. | ||
1053 | * @subordinate: Device that needs to wait for @dev. | ||
1054 | */ | ||
1055 | void device_pm_wait_for_dev(struct device *subordinate, struct device *dev) | ||
1056 | { | ||
1057 | dpm_wait(dev, subordinate->power.async_suspend); | ||
1058 | } | ||
1059 | EXPORT_SYMBOL_GPL(device_pm_wait_for_dev); | ||