From: Libo Chen <clbchenlibo.chen@huawei.com>
To: <anton@enomsg.org>, <dwmw2@infradead.org>
Cc: LKML <linux-kernel@vger.kernel.org>, <anton.vorontsov@linaro.org>,
<cbouatmailru@gmail.com>, Li Zefan <lizefan@huawei.com>
Subject: [PATCH] power: max8925: fix missing of_node_put
Date: Mon, 26 Aug 2013 15:06:36 +0800 [thread overview]
Message-ID: <521AFE7C.9020102@huawei.com> (raw)
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
next reply other threads:[~2013-08-26 7:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-26 7:06 Libo Chen [this message]
2013-08-28 1:11 ` [PATCH] power: max8925: fix missing of_node_put Anton Vorontsov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=521AFE7C.9020102@huawei.com \
--to=clbchenlibo.chen@huawei.com \
--cc=anton.vorontsov@linaro.org \
--cc=anton@enomsg.org \
--cc=cbouatmailru@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.