diff options
author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2015-08-13 10:24:41 +0530 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-09-22 16:20:10 +0200 |
commit | 5e5822f670c2c61953b5d4d18b4cc3e66744865c (patch) | |
tree | 48ab3f28eb14bf81bc4eb49446d90813c2aa4c3e /drivers/power/pda_power.c | |
parent | 75ea8ca844fd35ce365e35e1617b239892d31f72 (diff) |
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 'drivers/power/pda_power.c')
0 files changed, 0 insertions, 0 deletions