|
@@ -822,7 +822,10 @@ static int acpi_battery_add(struct acpi_sbs *sbs, int id)
|
|
|
|
|
|
static void acpi_battery_remove(struct acpi_sbs *sbs, int id)
|
|
static void acpi_battery_remove(struct acpi_sbs *sbs, int id)
|
|
{
|
|
{
|
|
|
|
+#if defined(CONFIG_ACPI_SYSFS_POWER) || defined(CONFIG_ACPI_PROCFS_POWER)
|
|
struct acpi_battery *battery = &sbs->battery[id];
|
|
struct acpi_battery *battery = &sbs->battery[id];
|
|
|
|
+#endif
|
|
|
|
+
|
|
#ifdef CONFIG_ACPI_SYSFS_POWER
|
|
#ifdef CONFIG_ACPI_SYSFS_POWER
|
|
if (battery->bat.dev) {
|
|
if (battery->bat.dev) {
|
|
if (battery->have_sysfs_alarm)
|
|
if (battery->have_sysfs_alarm)
|