linux/drivers/power
Andres Salomon 839dc9f105 power: fix incorrect unregistration in power_supply_create_attrs error path
In power_supply_create_attrs(), we create static attributes as referenced
by power_supply_static_attrs[i].  After that, if we fail, we unregister
via power_supply_static_attrs[psy->properties[i]].  This is incorrect, as
psy->properties has absolutely no bearing on static attribs.  This patch
fixes it to unregister the correct attrib.

Another line which was unnecessarily line wrapped is also unwrapped.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2008-02-02 02:42:59 +03:00
..
Kconfig Don't compile the PMU power driver on 64-bit PowerPC 2007-07-23 12:42:45 +01:00
Makefile
apm_power.c power supply : use class iteration api 2008-01-24 20:40:44 -08:00
ds2760_battery.c Add missing newlines to some uses of dev_<level> messages 2007-10-18 14:37:28 -07:00
olpc_battery.c power: remove POWER_SUPPLY_PROP_CAPACITY_LEVEL 2008-02-02 02:42:59 +03:00
pda_power.c Power supply class and drivers: remove non obligatory return statements 2007-07-15 22:32:38 +04:00
pmu_battery.c
power_supply.h Driver core: change add_uevent_var to use a struct 2007-10-12 14:51:01 -07:00
power_supply_core.c power supply : use class iteration api 2008-01-24 20:40:44 -08:00
power_supply_leds.c [BATTERY] power_supply_leds: use kasprintf 2008-02-02 02:42:59 +03:00
power_supply_sysfs.c power: fix incorrect unregistration in power_supply_create_attrs error path 2008-02-02 02:42:59 +03:00