Re: [PATCH v2] power_supply: max8998: Use devm_power_supply_register

From: Sebastian Reichel
Date: Tue Sep 22 2015 - 11:14:18 EST


Hi,

On Thu, Aug 13, 2015 at 10:24:41AM +0530, Vaishali Thakkar wrote:
> Use managed resource function devm_power_supply_register instead
> of power_supply_register to simplify the error path by allowing
> unregister to happen automatically on error. To be compatible with
> the change, replace various gotos by direct returns and remove
> unneeded label err.
>
> Also, remove max8998_battery_remove as it is now redundant.

Thanks, queued.

-- Sebastian

Attachment: signature.asc
Description: Digital signature