diff options
Diffstat (limited to 'drivers/acpi/sbs.c')
-rw-r--r-- | drivers/acpi/sbs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c index 38412ec2332d..89ad11138e48 100644 --- a/drivers/acpi/sbs.c +++ b/drivers/acpi/sbs.c | |||
@@ -827,7 +827,10 @@ static int acpi_battery_add(struct acpi_sbs *sbs, int id) | |||
827 | 827 | ||
828 | static void acpi_battery_remove(struct acpi_sbs *sbs, int id) | 828 | static void acpi_battery_remove(struct acpi_sbs *sbs, int id) |
829 | { | 829 | { |
830 | #if defined(CONFIG_ACPI_SYSFS_POWER) || defined(CONFIG_ACPI_PROCFS_POWER) | ||
830 | struct acpi_battery *battery = &sbs->battery[id]; | 831 | struct acpi_battery *battery = &sbs->battery[id]; |
832 | #endif | ||
833 | |||
831 | #ifdef CONFIG_ACPI_SYSFS_POWER | 834 | #ifdef CONFIG_ACPI_SYSFS_POWER |
832 | if (battery->bat.dev) { | 835 | if (battery->bat.dev) { |
833 | if (battery->have_sysfs_alarm) | 836 | if (battery->have_sysfs_alarm) |