aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/sleep.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2010-07-06 22:09:38 -0400
committerLen Brown <len.brown@intel.com>2010-07-06 22:09:38 -0400
commit78f5f023167813130d2cf657d1b9eadc32f0e992 (patch)
tree8b15e1f2b05cb82e277b7d6bff94501608c225de /drivers/acpi/sleep.c
parent25bed55753b8cf243406e8837990b55946c5278d (diff)
ACPI / Wakeup: Simplify enabling of wakeup devices
To simplify the enabling of wakeup devices during system suspend and hibernation, merge acpi_enable_wakeup_device_prep() with acpi_disable_wakeup_device() and remove unnecessary (and no longer valid) comments from the latter. Rename acpi_enable_wakeup_device() to acpi_enable_wakeup_devices() and acpi_disable_wakeup_device() to acpi_disable_wakeup_devices(), because these functions usually operate on multiple device objects. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/sleep.c')
-rw-r--r--drivers/acpi/sleep.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
index 8704ca78a8c4..93441c95c53b 100644
--- a/drivers/acpi/sleep.c
+++ b/drivers/acpi/sleep.c
@@ -73,8 +73,7 @@ static int acpi_sleep_prepare(u32 acpi_state)
73#endif 73#endif
74 printk(KERN_INFO PREFIX "Preparing to enter system sleep state S%d\n", 74 printk(KERN_INFO PREFIX "Preparing to enter system sleep state S%d\n",
75 acpi_state); 75 acpi_state);
76 acpi_enable_wakeup_device_prep(acpi_state); 76 acpi_enable_wakeup_devices(acpi_state);
77 acpi_enable_wakeup_device(acpi_state);
78 acpi_enter_sleep_state_prep(acpi_state); 77 acpi_enter_sleep_state_prep(acpi_state);
79 return 0; 78 return 0;
80} 79}
@@ -153,7 +152,7 @@ static void acpi_pm_finish(void)
153 152
154 printk(KERN_INFO PREFIX "Waking up from system sleep state S%d\n", 153 printk(KERN_INFO PREFIX "Waking up from system sleep state S%d\n",
155 acpi_state); 154 acpi_state);
156 acpi_disable_wakeup_device(acpi_state); 155 acpi_disable_wakeup_devices(acpi_state);
157 acpi_leave_sleep_state(acpi_state); 156 acpi_leave_sleep_state(acpi_state);
158 157
159 /* reset firmware waking vector */ 158 /* reset firmware waking vector */