aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/ac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/ac.c')
-rw-r--r--drivers/acpi/ac.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c
index e0a1b1541362..24ccf81d135f 100644
--- a/drivers/acpi/ac.c
+++ b/drivers/acpi/ac.c
@@ -197,6 +197,8 @@ static void acpi_ac_notify(acpi_handle handle, u32 event, void *data)
197 device = ac->device; 197 device = ac->device;
198 switch (event) { 198 switch (event) {
199 case ACPI_AC_NOTIFY_STATUS: 199 case ACPI_AC_NOTIFY_STATUS:
200 case ACPI_NOTIFY_BUS_CHECK:
201 case ACPI_NOTIFY_DEVICE_CHECK:
200 acpi_ac_get_state(ac); 202 acpi_ac_get_state(ac);
201 acpi_bus_generate_event(device, event, (u32) ac->state); 203 acpi_bus_generate_event(device, event, (u32) ac->state);
202 break; 204 break;
@@ -238,7 +240,7 @@ static int acpi_ac_add(struct acpi_device *device)
238 goto end; 240 goto end;
239 241
240 status = acpi_install_notify_handler(device->handle, 242 status = acpi_install_notify_handler(device->handle,
241 ACPI_DEVICE_NOTIFY, acpi_ac_notify, 243 ACPI_ALL_NOTIFY, acpi_ac_notify,
242 ac); 244 ac);
243 if (ACPI_FAILURE(status)) { 245 if (ACPI_FAILURE(status)) {
244 result = -ENODEV; 246 result = -ENODEV;
@@ -270,7 +272,7 @@ static int acpi_ac_remove(struct acpi_device *device, int type)
270 ac = (struct acpi_ac *)acpi_driver_data(device); 272 ac = (struct acpi_ac *)acpi_driver_data(device);
271 273
272 status = acpi_remove_notify_handler(device->handle, 274 status = acpi_remove_notify_handler(device->handle,
273 ACPI_DEVICE_NOTIFY, acpi_ac_notify); 275 ACPI_ALL_NOTIFY, acpi_ac_notify);
274 276
275 acpi_ac_remove_fs(device); 277 acpi_ac_remove_fs(device);
276 278