diff options
author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2015-08-13 07:54:41 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-09-22 17:20:10 +0300 |
commit | 5e5822f670c2c61953b5d4d18b4cc3e66744865c (patch) | |
tree | 48ab3f28eb14bf81bc4eb49446d90813c2aa4c3e /tools/lib/rbtree.c | |
parent | 75ea8ca844fd35ce365e35e1617b239892d31f72 (diff) | |
download | linux-5e5822f670c2c61953b5d4d18b4cc3e66744865c.tar.xz |
power_supply: max8998: Use devm_power_supply_register
Use managed resource function devm_power_supply_register instead
of power_supply_register to simplify the error path by allowing
unregister to happen automatically on error. To be compatible with
the change, replace various gotos by direct returns and remove
unneeded label err.
Also, remove max8998_battery_remove as it is now redundant.
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'tools/lib/rbtree.c')
0 files changed, 0 insertions, 0 deletions