diff options
author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2015-09-17 15:33:40 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-09-22 14:35:31 +0300 |
commit | 2a9123f185ca07dcd76f36242ee03bed3fe2ab5c (patch) | |
tree | dc8bdb58f8ae5b364d4b410439f649ea13dd8ede /drivers/power/reset/at91-reset.c | |
parent | 56d7df8716b2e7a138af89bffe4923e15cf9bf68 (diff) | |
download | linux-2a9123f185ca07dcd76f36242ee03bed3fe2ab5c.tar.xz |
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>
Diffstat (limited to 'drivers/power/reset/at91-reset.c')
0 files changed, 0 insertions, 0 deletions