max8903_charger: Convert to using managed resources
authorVaishali Thakkar <vthakkar1994@gmail.com>
Thu, 17 Sep 2015 13:25:00 +0000 (18:55 +0530)
committerSebastian Reichel <sre@kernel.org>
Tue, 22 Sep 2015 14:02:16 +0000 (16:02 +0200)
commit0df2deeab462bde009c7f1a29c6d2d395bac39d8
tree1c201db8fa56a3ffcd4ee58bf4c8ff2a13cef64e
parent50bddb99c10d6ed861ce384bfe95c78eab5e3ca7
max8903_charger: 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 max8903_remove as it is now redundant.

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