From: Zumeng Chen <zumeng.chen@gmail.com> To: linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: tony@atomide.com, viresh.kumar@linaro.org, Zumeng Chen <zumeng.chen@gmail.com>, rjw@rjwysocki.net, d-gerlach@ti.com Subject: [PATCH 1/1] cpufreq: ti-cpufreq: add missing of_node_put() Date: Tue, 10 Oct 2017 21:27:20 +0800 [thread overview] Message-ID: <1507642040-13646-1-git-send-email-zumeng.chen@gmail.com> (raw) call of_node_put to release the refcount of np. Signed-off-by: Zumeng Chen <zumeng.chen@gmail.com> --- drivers/cpufreq/ti-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/ti-cpufreq.c b/drivers/cpufreq/ti-cpufreq.c index ffcddcd..923317f 100644 --- a/drivers/cpufreq/ti-cpufreq.c +++ b/drivers/cpufreq/ti-cpufreq.c @@ -205,6 +205,7 @@ static int ti_cpufreq_init(void) np = of_find_node_by_path("/"); match = of_match_node(ti_cpufreq_of_match, np); + of_node_put(np); if (!match) return -ENODEV; -- 2.7.5
WARNING: multiple messages have this Message-ID (diff)
From: zumeng.chen@gmail.com (Zumeng Chen) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] cpufreq: ti-cpufreq: add missing of_node_put() Date: Tue, 10 Oct 2017 21:27:20 +0800 [thread overview] Message-ID: <1507642040-13646-1-git-send-email-zumeng.chen@gmail.com> (raw) call of_node_put to release the refcount of np. Signed-off-by: Zumeng Chen <zumeng.chen@gmail.com> --- drivers/cpufreq/ti-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/ti-cpufreq.c b/drivers/cpufreq/ti-cpufreq.c index ffcddcd..923317f 100644 --- a/drivers/cpufreq/ti-cpufreq.c +++ b/drivers/cpufreq/ti-cpufreq.c @@ -205,6 +205,7 @@ static int ti_cpufreq_init(void) np = of_find_node_by_path("/"); match = of_match_node(ti_cpufreq_of_match, np); + of_node_put(np); if (!match) return -ENODEV; -- 2.7.5
next reply other threads:[~2017-10-10 13:27 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-10-10 13:27 Zumeng Chen [this message] 2017-10-10 13:27 ` [PATCH 1/1] cpufreq: ti-cpufreq: add missing of_node_put() Zumeng Chen 2017-10-11 4:10 ` Viresh Kumar 2017-10-11 4:10 ` Viresh Kumar
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=1507642040-13646-1-git-send-email-zumeng.chen@gmail.com \ --to=zumeng.chen@gmail.com \ --cc=d-gerlach@ti.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-omap@vger.kernel.org \ --cc=linux-pm@vger.kernel.org \ --cc=rjw@rjwysocki.net \ --cc=tony@atomide.com \ --cc=viresh.kumar@linaro.org \ /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: linkBe 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.