]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc76d3e8179c99627d442e5be6ffe97c4ef9b0de
tree1be22813f6cab5aa5d08fd9131eba25d249842fd
parent4f99014c78051728a9b39409ac2c36dc52c379ff
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