aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/button.c')
-rw-r--r--drivers/acpi/button.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
index 09ca3ce7a051..f53fbe307c9d 100644
--- a/drivers/acpi/button.c
+++ b/drivers/acpi/button.c
@@ -425,6 +425,7 @@ static int acpi_button_add(struct acpi_device *device)
425 acpi_enable_gpe(device->wakeup.gpe_device, 425 acpi_enable_gpe(device->wakeup.gpe_device,
426 device->wakeup.gpe_number, 426 device->wakeup.gpe_number,
427 ACPI_GPE_TYPE_WAKE_RUN); 427 ACPI_GPE_TYPE_WAKE_RUN);
428 device->wakeup.run_wake_count++;
428 device->wakeup.state.enabled = 1; 429 device->wakeup.state.enabled = 1;
429 } 430 }
430 431
@@ -448,6 +449,7 @@ static int acpi_button_remove(struct acpi_device *device, int type)
448 acpi_disable_gpe(device->wakeup.gpe_device, 449 acpi_disable_gpe(device->wakeup.gpe_device,
449 device->wakeup.gpe_number, 450 device->wakeup.gpe_number,
450 ACPI_GPE_TYPE_WAKE_RUN); 451 ACPI_GPE_TYPE_WAKE_RUN);
452 device->wakeup.run_wake_count--;
451 device->wakeup.state.enabled = 0; 453 device->wakeup.state.enabled = 0;
452 } 454 }
453 455