Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1230307
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] power_supply: max8998: Use devm_power_supply_register |
| Date | 2015-09-22 17:20 +0200 |
| Message-ID | <qbxwl-DB-13@gated-at.bofh.it> (permalink) |
| References | <pWSMq-1pC-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
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
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v2] power_supply: max8998: Use devm_power_supply_register Sebastian Reichel <sre@kernel.org> - 2015-09-22 17:20 +0200
csiph-web