power: max17042_battery: Convert to using managed resources
authorVaishali Thakkar <vthakkar1994@gmail.com>
Thu, 17 Sep 2015 12:57:52 +0000 (18:27 +0530)
committerSebastian Reichel <sre@kernel.org>
Tue, 22 Sep 2015 14:01:34 +0000 (16:01 +0200)
commit50bddb99c10d6ed861ce384bfe95c78eab5e3ca7
treeb3bae736b746120473fa86d10e4329e559bb0811
parentbc312cbdfa4c4eaa074bae29adbff231c743619a
power: max17042_battery: Convert to using managed resources

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

Also, remove max17042_remove as it is now redundant.

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