diff options
author | Srikant Ritolia <s.ritolia@samsung.com> | 2016-12-08 14:42:37 +0530 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2017-01-04 21:59:56 +0100 |
commit | a50b0dbbaf49521cc47a0bcfd20a6f658258541c (patch) | |
tree | 710a71a43f61933d60132209004199dd909d8b8b /drivers/hwmon | |
parent | 50111d3f886ac95cb76aefb6ceb0d1b6e78eefc0 (diff) |
power: supply: max8997_charger: Using device managed API and remove OOM print
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 <s.ritolia@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions