diff options
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r-- | drivers/acpi/battery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 75f39f2c166d..52df9947dbb2 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -567,13 +567,13 @@ static int acpi_battery_update(struct acpi_battery *battery) | |||
567 | result = acpi_battery_get_status(battery); | 567 | result = acpi_battery_get_status(battery); |
568 | if (result) | 568 | if (result) |
569 | return result; | 569 | return result; |
570 | #ifdef CONFIG_ACPI_SYSFS_POWER | ||
571 | if (!acpi_battery_present(battery)) { | 570 | if (!acpi_battery_present(battery)) { |
571 | #ifdef CONFIG_ACPI_SYSFS_POWER | ||
572 | sysfs_remove_battery(battery); | 572 | sysfs_remove_battery(battery); |
573 | #endif | ||
573 | battery->update_time = 0; | 574 | battery->update_time = 0; |
574 | return 0; | 575 | return 0; |
575 | } | 576 | } |
576 | #endif | ||
577 | if (!battery->update_time || | 577 | if (!battery->update_time || |
578 | old_present != acpi_battery_present(battery)) { | 578 | old_present != acpi_battery_present(battery)) { |
579 | result = acpi_battery_get_info(battery); | 579 | result = acpi_battery_get_info(battery); |