Pull battery into release branch
[linux-2.6.git] / drivers / acpi / battery.c
index 192c244f61902b1e510c41780cd3655d9c7a1756..2e8e790c1180ee500d7a1a3ef7d929ff7ed3df65 100644 (file)
@@ -153,6 +153,8 @@ static int acpi_battery_get_property(struct power_supply *psy,
                        val->intval = POWER_SUPPLY_STATUS_CHARGING;
                else if (battery->state == 0)
                        val->intval = POWER_SUPPLY_STATUS_FULL;
+               else
+                       val->intval = POWER_SUPPLY_STATUS_UNKNOWN;
                break;
        case POWER_SUPPLY_PROP_PRESENT:
                val->intval = acpi_battery_present(battery);