diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2009-01-17 17:40:44 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2009-01-17 17:40:44 +0000 |
| commit | 0f9e2596e2b9b0ee35ad700da12efe5f3302eda7 (patch) | |
| tree | a1f422d2f16b63e8332209e0b021bc670062b9a0 | |
| parent | 83409a55ece4d29a6d2259bc2714eebece3d091d (diff) | |
Notes
| -rw-r--r-- | sys/dev/acpica/acpi_battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_battery.c b/sys/dev/acpica/acpi_battery.c index f289b2bd64d2..2e8c7a4b4932 100644 --- a/sys/dev/acpica/acpi_battery.c +++ b/sys/dev/acpica/acpi_battery.c @@ -197,7 +197,7 @@ acpi_battery_get_battinfo(device_t dev, struct acpi_battinfo *battinfo) * is 0 (due to some error reading the battery), skip this * conversion. */ - if (bif->units == ACPI_BIF_UNITS_MA && bif->dvol != 0) { + if (bif->units == ACPI_BIF_UNITS_MA && bif->dvol != 0 && dev == NULL) { bst[i].rate = (bst[i].rate * bif->dvol) / 1000; bst[i].cap = (bst[i].cap * bif->dvol) / 1000; bif->lfcap = (bif->lfcap * bif->dvol) / 1000; |
