twl4030_charger: use devres for power_supply_register and kzalloc.
authorNeilBrown <neilb@suse.de>
Sun, 22 Mar 2015 23:20:28 +0000 (10:20 +1100)
committerSebastian Reichel <sre@kernel.org>
Fri, 24 Jul 2015 14:15:12 +0000 (16:15 +0200)
commit325b50aa5d1c7dae57d1e44defdbacd1e2bcabde
treee0d43722c05b09139428213ef912f54fd55cc83e
parent1b7cac23419e1398eac4c28368da6671c9c4ce9d
twl4030_charger: use devres for power_supply_register and kzalloc.

Final allocations/registrations are now managed by devres.

Signed-off-by: NeilBrown <neilb@suse.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/twl4030_charger.c