power_supply: bq24735: Convert to using managed resources
authorVaishali Thakkar <vthakkar1994@gmail.com>
Sat, 25 Jul 2015 03:53:16 +0000 (09:23 +0530)
committerSebastian Reichel <sre@kernel.org>
Mon, 27 Jul 2015 14:09:53 +0000 (16:09 +0200)
commit71a5a508436332ac40f688ef06e61628f25f3e5b
tree09d494bd0e61891b0a0f7e437292c1f102b4ea89
parent3309aa494186b0c5364d812ae000955262590655
power_supply: bq24735: Convert to using managed resources

Use managed resource functions like devm_kasprintf and
devm_power_supply_register in bq24735_charger_probe. To be
compatible with the change, replace various gotos by direct
returns and drop unneeded labels.

Also, remove bq24735_charger_remove as it is now redundant.

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