88pm860x_battery: Convert to using managed resources
authorVaishali Thakkar <vthakkar1994@gmail.com>
Thu, 17 Sep 2015 12:33:40 +0000 (18:03 +0530)
committerSebastian Reichel <sre@kernel.org>
Tue, 22 Sep 2015 11:35:31 +0000 (13:35 +0200)
commit2a9123f185ca07dcd76f36242ee03bed3fe2ab5c
treedc8bdb58f8ae5b364d4b410439f649ea13dd8ede
parent56d7df8716b2e7a138af89bffe4923e15cf9bf68
88pm860x_battery: Convert to using managed resources

Use managed resource functions devm_request_threaded_irq and
devm_power_supply_register to simplify error handling.

To be compatible with the change, various gotos are replaced
with direct returns and unneeded labels are dropped. Also,
remove pm860x_battery_remove as it is now redundant.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/88pm860x_battery.c