ACPI: Battery: remove cycle from battery removal.
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Tue, 13 Nov 2007 09:23:06 +0000 (12:23 +0300)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 13 Nov 2007 17:02:18 +0000 (09:02 -0800)
commit9104476e4efbef8a8e32d48ced583603ff32a2db
tree1be22813f6cab5aa5d08fd9131eba25d249842fd
parent0b832a4b93932103d73c0c3f35ef1153e288327b
ACPI: Battery: remove cycle from battery removal.

get_property() should not call battery_update(), it also should call
get_status() only if battery is present to avoid cycle and oops.

Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Tested-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Acked-by: Johannes Weiner <hannes@saeurebad.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/acpi/battery.c