From: Alexey Starikovskiy Date: Tue, 18 Mar 2008 02:37:42 +0000 (-0400) Subject: ACPI: battery: Don't return -EFAIL on broken packages. X-Git-Tag: v2.6.25-rc7~107^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8a1bdb14940946fcf0438a6337b2a6c54294fb8;p=pandora-kernel.git ACPI: battery: Don't return -EFAIL on broken packages. Acer BIOS has a bug which is exposed when a dead battery is present. The package template that is used to describe battery status is over-written with sane values when the battery is live. But when the batter is dead, a bogus reference in the template is used. In this case, Linux returns a fault, when instead it should simply return that it doesn't know the missing value. http://bugzilla.kernel.org/show_bug.cgi?id=8573 http://bugzilla.kernel.org/show_bug.cgi?id=10202 Signed-off-by: Alexey Starikovskiy Signed-off-by: Len Brown --- Reading git-diff-tree failed