* [PATCH] power: max8925: fix missing of_node_put
@ 2013-08-26 7:06 Libo Chen
2013-08-28 1:11 ` Anton Vorontsov
0 siblings, 1 reply; 2+ messages in thread
From: Libo Chen @ 2013-08-26 7:06 UTC (permalink / raw)
To: anton, dwmw2; +Cc: LKML, anton.vorontsov, cbouatmailru, Li Zefan
decrease np device_node refcount after task completion
Signed-off-by: Libo Chen <libo.chen@huawei.com>
---
drivers/power/max8925_power.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/power/max8925_power.c b/drivers/power/max8925_power.c
index 0ee1e14..b4513f2 100644
--- a/drivers/power/max8925_power.c
+++ b/drivers/power/max8925_power.c
@@ -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;
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-28 1:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-26 7:06 [PATCH] power: max8925: fix missing of_node_put Libo Chen
2013-08-28 1:11 ` Anton Vorontsov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox