commit | 5d8a4219a0795a321606c51582898223db80e874 | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Tue Feb 24 15:33:50 2015 +1100 |
committer | Sebastian Reichel <sre@kernel.org> | Thu Feb 26 01:50:22 2015 +0100 |
tree | 138911df8103697cc44bee53e75650684ece1964 | |
parent | 881f985a256839de2bb220dea5a4c59b8fa99b82 [diff] |
power_supply core: support use of devres to register/unregister a power supply. Using devm_power_supply_register allows the unregister to happen automatically on error or final put. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Sebastian Reichel <sre@kernel.org>