aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/sleep/main.c
diff options
context:
space:
mode:
authorLin Ming <ming.m.lin@intel.com>2008-12-16 03:57:46 -0500
committerLen Brown <len.brown@intel.com>2008-12-31 01:11:19 -0500
commit3d97e426aa97d60b3dac1b72923b90b491fbac20 (patch)
tree06d6350d2ca7621d7685730f9dd745b04e1cfa31 /drivers/acpi/sleep/main.c
parent08ac07b826cfd9a9b28aa094f14e1c023bdc9864 (diff)
ACPI: main.c: use new public GPE group enable/disable interfaces
Avoid using internal functions: acpi_hw_disable_all_gpes and acpi_hw_enable_all_runtime_gpes Use new public GPE group enable/disable interfaces: acpi_disable_all_gpes and acpi_enable_all_runtime_gpes Also avoid using internal symbol ACPI_TABLE_INDEX_FACS, call acpi_get_table. Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/sleep/main.c')
-rw-r--r--drivers/acpi/sleep/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c
index 28a691cc625..d8242772de9 100644
--- a/drivers/acpi/sleep/main.c
+++ b/drivers/acpi/sleep/main.c
@@ -107,7 +107,7 @@ static bool set_sci_en_on_resume;
107 */ 107 */
108static int acpi_pm_disable_gpes(void) 108static int acpi_pm_disable_gpes(void)
109{ 109{
110 acpi_hw_disable_all_gpes(); 110 acpi_disable_all_gpes();
111 return 0; 111 return 0;
112} 112}
113 113
@@ -135,7 +135,7 @@ static int acpi_pm_prepare(void)
135 int error = __acpi_pm_prepare(); 135 int error = __acpi_pm_prepare();
136 136
137 if (!error) 137 if (!error)
138 acpi_hw_disable_all_gpes(); 138 acpi_disable_all_gpes();
139 return error; 139 return error;
140} 140}
141 141
@@ -267,7 +267,7 @@ static int acpi_suspend_enter(suspend_state_t pm_state)
267 * (like wakeup GPE) haven't handler, this can avoid such GPE misfire. 267 * (like wakeup GPE) haven't handler, this can avoid such GPE misfire.
268 * acpi_leave_sleep_state will reenable specific GPEs later 268 * acpi_leave_sleep_state will reenable specific GPEs later
269 */ 269 */
270 acpi_hw_disable_all_gpes(); 270 acpi_disable_all_gpes();
271 271
272 local_irq_restore(flags); 272 local_irq_restore(flags);
273 printk(KERN_DEBUG "Back to C!\n"); 273 printk(KERN_DEBUG "Back to C!\n");
@@ -436,7 +436,7 @@ static void acpi_hibernation_leave(void)
436 436
437static void acpi_pm_enable_gpes(void) 437static void acpi_pm_enable_gpes(void)
438{ 438{
439 acpi_hw_enable_all_runtime_gpes(); 439 acpi_enable_all_runtime_gpes();
440} 440}
441 441
442static struct platform_hibernation_ops acpi_hibernation_ops = { 442static struct platform_hibernation_ops acpi_hibernation_ops = {
@@ -622,7 +622,7 @@ static void acpi_power_off_prepare(void)
622{ 622{
623 /* Prepare to power off the system */ 623 /* Prepare to power off the system */
624 acpi_sleep_prepare(ACPI_STATE_S5); 624 acpi_sleep_prepare(ACPI_STATE_S5);
625 acpi_hw_disable_all_gpes(); 625 acpi_disable_all_gpes();
626} 626}
627 627
628static void acpi_power_off(void) 628static void acpi_power_off(void)
@@ -671,7 +671,7 @@ int __init acpi_sleep_init(void)
671 sleep_states[ACPI_STATE_S4] = 1; 671 sleep_states[ACPI_STATE_S4] = 1;
672 printk(" S4"); 672 printk(" S4");
673 if (!nosigcheck) { 673 if (!nosigcheck) {
674 acpi_get_table_by_index(ACPI_TABLE_INDEX_FACS, 674 acpi_get_table(ACPI_SIG_FACS, 1,
675 (struct acpi_table_header **)&facs); 675 (struct acpi_table_header **)&facs);
676 if (facs) 676 if (facs)
677 s4_hardware_signature = 677 s4_hardware_signature =