From: Andrey Borzenkov Date: Sun, 28 Oct 2007 09:50:09 +0000 (+0300) Subject: ACPI: battery: register power_supply subdevice only when battery is present X-Git-Tag: v2.6.24-rc2~92^2~3^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=508df92d1f8d1921013cb4f45bb547d0eaff912a;p=pandora-kernel.git ACPI: battery: register power_supply subdevice only when battery is present Make sure no power_supply object is present unless we actualy detect presence of battery. This fixes ghost batteries detected by HAL Signed-off-by: Andrey Borzenkov Signed-off-by: Alexey Starikovskiy Signed-off-by: Len Brown --- Reading git-diff-tree failed