ACPI / Battery: propagate sysfs error in acpi_battery_add()
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Tue, 12 Jul 2011 08:03:29 +0000 (09:03 +0100)
committerLen Brown <len.brown@intel.com>
Sat, 16 Jul 2011 22:57:24 +0000 (18:57 -0400)
commiteb03cb02b74df6dd0b653d5f6d976f16a434dfaf
tree0df6bbc6e0013153a9f914d50ac8e9a93ad154ac
parente80bba4b5108c6479379740201b0a5d9da5ffbac
ACPI / Battery: propagate sysfs error in acpi_battery_add()

Make sure the error return from sysfs_add_battery() is checked and
propagated out from acpi_battery_add().

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/battery.c