mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-18 07:27:20 +00:00
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>
This commit is contained in:
parent
f107ae11f0
commit
68f429d558
@ -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, "no-insert-detect", &no_insert_detect);
|
||||
of_property_read_u32(np, "no-temp-support", &no_temp_support);
|
||||
of_node_put(np);
|
||||
|
||||
pdata->batt_detect = batt_detect;
|
||||
pdata->fast_charge = fast_charge;
|
||||
|
Loading…
x
Reference in New Issue
Block a user