]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/acpi/button.c
ACPI / PM: Add more run-time wake-up fields
[net-next-2.6.git] / drivers / acpi / button.c
index 09ca3ce7a0513b0b5df978f0fba6194c7e8dc624..f53fbe307c9dba027d9e4dc53867f0579da2f783 100644 (file)
@@ -425,6 +425,7 @@ static int acpi_button_add(struct acpi_device *device)
                acpi_enable_gpe(device->wakeup.gpe_device,
                                device->wakeup.gpe_number,
                                ACPI_GPE_TYPE_WAKE_RUN);
+               device->wakeup.run_wake_count++;
                device->wakeup.state.enabled = 1;
        }
 
@@ -448,6 +449,7 @@ static int acpi_button_remove(struct acpi_device *device, int type)
                acpi_disable_gpe(device->wakeup.gpe_device,
                                device->wakeup.gpe_number,
                                ACPI_GPE_TYPE_WAKE_RUN);
+               device->wakeup.run_wake_count--;
                device->wakeup.state.enabled = 0;
        }