Thread (2 messages) 2 messages, 2 authors, 2016-12-17

Re: [PATCH] power: max8997_charger: Using device managed API and remove OOM print

From: Sebastian Reichel <sre@kernel.org>
Date: 2016-12-17 16:09:43

Hi,

On Thu, Dec 08, 2016 at 02:42:37PM +0530, Srikant Ritolia wrote:
Use managed resource function devm_power_supply_register instead of
power_supply_register to simplify the error path by allowing unregistering
to happen automatically on error and remove.
Removing max8997_battery_remove function also as it is now redundant.

Also removing out of memory printk message after kzalloc as there is
already enough information on failure.

Signed-off-by: Srikant Ritolia <redacted>
Thanks for your patch. We are currently in the merge
window and your patch will appear in linux-next once
4.10-rc1 has been tagged by Linus Torvalds.

Until then I queued it into this branch:

https://git.kernel.org/cgit/linux/kernel/git/sre/linux-power-supply.git/log/?h=for-next-next

-- Sebastian

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help