[RFC PATCH v2 3/3] PM / Core: suspend_again support for platform_device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: MyungJoo Ham <myungjoo.ham@xxxxxxxxxxx>
Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
---
 drivers/base/platform.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index f051cff..2586f06 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -909,6 +909,8 @@ static int platform_pm_restore_noirq(struct device *dev)
 	return ret;
 }
 
+#define platform_pm_suspend_again	pm_generic_suspend_again
+
 #else /* !CONFIG_HIBERNATION */
 
 #define platform_pm_freeze		NULL
@@ -919,6 +921,7 @@ static int platform_pm_restore_noirq(struct device *dev)
 #define platform_pm_thaw_noirq		NULL
 #define platform_pm_poweroff_noirq	NULL
 #define platform_pm_restore_noirq	NULL
+#define platform_pm_suspend_again	NULL
 
 #endif /* !CONFIG_HIBERNATION */
 
@@ -965,6 +968,7 @@ static const struct dev_pm_ops platform_dev_pm_ops = {
 	.runtime_suspend = platform_pm_runtime_suspend,
 	.runtime_resume = platform_pm_runtime_resume,
 	.runtime_idle = platform_pm_runtime_idle,
+	.suspend_again = platform_pm_suspend_again,
 };
 
 struct bus_type platform_bus_type = {
-- 
1.7.1

_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux