power: max8925: fix missing of_node_put
PATCH 1/1 power: max8925: fix missing of_node_put
decrease np device_node refcount after task completion
Signed-off-by Libo Chen <[email protected]>
--- drivers/power/max8925_power.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/power/max8925_power.c +1 -0
@@ -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;
Signature · 1 line
1.7.1
Anton Vorontsov
AppliedQuoted 4 lines · Libo Chen
decrease np
device_noderefcount after task completionSigned-off-by Libo Chen <[email protected]>
Applied, thanks!
Anton