Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68f429d5 authored by Libo Chen's avatar Libo Chen Committed by Anton Vorontsov
Browse files

max8925_power: Fix missing of_node_put



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

Signed-off-by: default avatarLibo Chen <libo.chen@huawei.com>
Signed-off-by: default avatarAnton Vorontsov <anton@enomsg.org>
parent f107ae11
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -458,6 +458,7 @@ max8925_power_dt_init(struct platform_device *pdev)
	of_property_read_u32(np, "fast-charge", &fast_charge);
	of_property_read_u32(np, "fast-charge", &fast_charge);
	of_property_read_u32(np, "no-insert-detect", &no_insert_detect);
	of_property_read_u32(np, "no-insert-detect", &no_insert_detect);
	of_property_read_u32(np, "no-temp-support", &no_temp_support);
	of_property_read_u32(np, "no-temp-support", &no_temp_support);
	of_node_put(np);


	pdata->batt_detect = batt_detect;
	pdata->batt_detect = batt_detect;
	pdata->fast_charge = fast_charge;
	pdata->fast_charge = fast_charge;