aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/ec.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r--drivers/acpi/ec.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index bf5045416575..9bf7a7546bd4 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -1088,22 +1088,6 @@ error:
1088 return -ENODEV; 1088 return -ENODEV;
1089} 1089}
1090 1090
1091static int acpi_ec_suspend(struct acpi_device *device, pm_message_t state)
1092{
1093 struct acpi_ec *ec = acpi_driver_data(device);
1094 /* Stop using the GPE, but keep it reference counted. */
1095 acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_DISABLE);
1096 return 0;
1097}
1098
1099static int acpi_ec_resume(struct acpi_device *device)
1100{
1101 struct acpi_ec *ec = acpi_driver_data(device);
1102 /* Enable the GPE again, but don't reference count it once more. */
1103 acpi_set_gpe(NULL, ec->gpe, ACPI_GPE_ENABLE);
1104 return 0;
1105}
1106
1107static struct acpi_driver acpi_ec_driver = { 1091static struct acpi_driver acpi_ec_driver = {
1108 .name = "ec", 1092 .name = "ec",
1109 .class = ACPI_EC_CLASS, 1093 .class = ACPI_EC_CLASS,
@@ -1111,8 +1095,6 @@ static struct acpi_driver acpi_ec_driver = {
1111 .ops = { 1095 .ops = {
1112 .add = acpi_ec_add, 1096 .add = acpi_ec_add,
1113 .remove = acpi_ec_remove, 1097 .remove = acpi_ec_remove,
1114 .suspend = acpi_ec_suspend,
1115 .resume = acpi_ec_resume,
1116 }, 1098 },
1117}; 1099};
1118 1100