diff options
| -rw-r--r-- | drivers/acpi/battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index fdc16ce9d272..672263a3832c 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
| @@ -1106,7 +1106,7 @@ static int battery_notify(struct notifier_block *nb, | |||
| 1106 | if (!acpi_battery_present(battery)) | 1106 | if (!acpi_battery_present(battery)) |
| 1107 | return 0; | 1107 | return 0; |
| 1108 | 1108 | ||
| 1109 | if (battery->bat) { | 1109 | if (!battery->bat) { |
| 1110 | result = acpi_battery_get_info(battery); | 1110 | result = acpi_battery_get_info(battery); |
| 1111 | if (result) | 1111 | if (result) |
| 1112 | return result; | 1112 | return result; |
