public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [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

* Re: [PATCH] power: max8925: fix missing of_node_put
  2013-08-26  7:06 [PATCH] power: max8925: fix missing of_node_put Libo Chen
@ 2013-08-28  1:11 ` Anton Vorontsov
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Vorontsov @ 2013-08-28  1:11 UTC (permalink / raw)
  To: Libo Chen; +Cc: dwmw2, LKML, Li Zefan

On Mon, Aug 26, 2013 at 03:06:36PM +0800, Libo Chen wrote:
> 
> decrease np device_node refcount after task completion
> 
> Signed-off-by: Libo Chen <libo.chen@huawei.com>

Applied, thanks!

Anton

^ permalink raw reply	[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