]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
cpufreq: ti-cpufreq: add missing of_node_put()
authorZumeng Chen <zumeng.chen@gmail.com>
Tue, 10 Oct 2017 13:27:20 +0000 (21:27 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 Oct 2017 22:56:15 +0000 (00:56 +0200)
call of_node_put to release the refcount of np.

Signed-off-by: Zumeng Chen <zumeng.chen@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/ti-cpufreq.c

index ffcddcd4c5e68c7f9a356df2e18417e9c6f0a278..923317f03b4bc367b8ce3d79197bca1d2b6f9a52 100644 (file)
@@ -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;