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: NAlexey Starikovskiy <astarikovskiy@suse.de> Tested-by: NRolf Eike Beer <eike-kernel@sf-tec.de> Acked-by: NJohannes Weiner <hannes@saeurebad.de> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
Showing
想要评论请 注册 或 登录