diff options
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r-- | drivers/acpi/battery.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 3ea79decfe24..24bf4dca88cc 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -668,6 +668,8 @@ static void acpi_battery_notify(acpi_handle handle, u32 event, void *data) | |||
668 | switch (event) { | 668 | switch (event) { |
669 | case ACPI_BATTERY_NOTIFY_STATUS: | 669 | case ACPI_BATTERY_NOTIFY_STATUS: |
670 | case ACPI_BATTERY_NOTIFY_INFO: | 670 | case ACPI_BATTERY_NOTIFY_INFO: |
671 | case ACPI_NOTIFY_BUS_CHECK: | ||
672 | case ACPI_NOTIFY_DEVICE_CHECK: | ||
671 | acpi_battery_check(battery); | 673 | acpi_battery_check(battery); |
672 | acpi_bus_generate_event(device, event, battery->flags.present); | 674 | acpi_bus_generate_event(device, event, battery->flags.present); |
673 | break; | 675 | break; |
@@ -709,7 +711,7 @@ static int acpi_battery_add(struct acpi_device *device) | |||
709 | goto end; | 711 | goto end; |
710 | 712 | ||
711 | status = acpi_install_notify_handler(device->handle, | 713 | status = acpi_install_notify_handler(device->handle, |
712 | ACPI_DEVICE_NOTIFY, | 714 | ACPI_ALL_NOTIFY, |
713 | acpi_battery_notify, battery); | 715 | acpi_battery_notify, battery); |
714 | if (ACPI_FAILURE(status)) { | 716 | if (ACPI_FAILURE(status)) { |
715 | result = -ENODEV; | 717 | result = -ENODEV; |
@@ -741,7 +743,7 @@ static int acpi_battery_remove(struct acpi_device *device, int type) | |||
741 | battery = (struct acpi_battery *)acpi_driver_data(device); | 743 | battery = (struct acpi_battery *)acpi_driver_data(device); |
742 | 744 | ||
743 | status = acpi_remove_notify_handler(device->handle, | 745 | status = acpi_remove_notify_handler(device->handle, |
744 | ACPI_DEVICE_NOTIFY, | 746 | ACPI_ALL_NOTIFY, |
745 | acpi_battery_notify); | 747 | acpi_battery_notify); |
746 | 748 | ||
747 | acpi_battery_remove_fs(device); | 749 | acpi_battery_remove_fs(device); |