commit | 0df2deeab462bde009c7f1a29c6d2d395bac39d8 | [log] [tgz] |
---|---|---|
author | Vaishali Thakkar <vthakkar1994@gmail.com> | Thu Sep 17 18:55:00 2015 +0530 |
committer | Sebastian Reichel <sre@kernel.org> | Tue Sep 22 16:02:16 2015 +0200 |
tree | 1c201db8fa56a3ffcd4ee58bf4c8ff2a13cef64e | |
parent | 50bddb99c10d6ed861ce384bfe95c78eab5e3ca7 [diff] |
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>