public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: viresh.kumar@linaro.org (Viresh Kumar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/1] cpufreq: ti-cpufreq: add missing of_node_put()
Date: Wed, 11 Oct 2017 09:40:30 +0530	[thread overview]
Message-ID: <20171011041030.GJ4031@vireshk-i7> (raw)
In-Reply-To: <1507642040-13646-1-git-send-email-zumeng.chen@gmail.com>

On 10-10-17, 21:27, Zumeng Chen wrote:
> 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;
>  

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

      reply	other threads:[~2017-10-11  4:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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=20171011041030.GJ4031@vireshk-i7 \
    --to=viresh.kumar@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox