aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r--drivers/acpi/battery.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index eb00c4e3747..58b4517ce71 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -832,14 +832,12 @@ static int acpi_battery_add(struct acpi_device *device)
832 acpi_battery_update(battery); 832 acpi_battery_update(battery);
833#ifdef CONFIG_ACPI_PROCFS_POWER 833#ifdef CONFIG_ACPI_PROCFS_POWER
834 result = acpi_battery_add_fs(device); 834 result = acpi_battery_add_fs(device);
835 if (result)
836 goto end;
837#endif 835#endif
838 printk(KERN_INFO PREFIX "%s Slot [%s] (battery %s)\n", 836 if (!result) {
839 ACPI_BATTERY_DEVICE_NAME, acpi_device_bid(device), 837 printk(KERN_INFO PREFIX "%s Slot [%s] (battery %s)\n",
840 device->status.battery_present ? "present" : "absent"); 838 ACPI_BATTERY_DEVICE_NAME, acpi_device_bid(device),
841 end: 839 device->status.battery_present ? "present" : "absent");
842 if (result) { 840 } else {
843#ifdef CONFIG_ACPI_PROCFS_POWER 841#ifdef CONFIG_ACPI_PROCFS_POWER
844 acpi_battery_remove_fs(device); 842 acpi_battery_remove_fs(device);
845#endif 843#endif