Skip to content

Commit 68f429d

Browse files
Libo Chenenomsg
authored andcommitted
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>
1 parent f107ae1 commit 68f429d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/power/max8925_power.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ max8925_power_dt_init(struct platform_device *pdev)
458458
of_property_read_u32(np, "fast-charge", &fast_charge);
459459
of_property_read_u32(np, "no-insert-detect", &no_insert_detect);
460460
of_property_read_u32(np, "no-temp-support", &no_temp_support);
461+
of_node_put(np);
461462

462463
pdata->batt_detect = batt_detect;
463464
pdata->fast_charge = fast_charge;

0 commit comments

Comments
 (0)