Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

max8925_power: Fix missing of_node_put

Decrease np device_node refcount after we are done with the node.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>

authored by

Libo Chen and committed by
Anton Vorontsov
68f429d5 f107ae11

+1
+1
drivers/power/max8925_power.c
··· 458 458 of_property_read_u32(np, "fast-charge", &fast_charge); 459 459 of_property_read_u32(np, "no-insert-detect", &no_insert_detect); 460 460 of_property_read_u32(np, "no-temp-support", &no_temp_support); 461 + of_node_put(np); 461 462 462 463 pdata->batt_detect = batt_detect; 463 464 pdata->fast_charge = fast_charge;