[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190204063501.1348-1-tiny.windzz@gmail.com>
Date: Mon, 4 Feb 2019 01:35:01 -0500
From: Yangtao Li <tiny.windzz@...il.com>
To: rjw@...ysocki.net, viresh.kumar@...aro.org,
thierry.reding@...il.com, jonathanh@...dia.com
Cc: linux-pm@...r.kernel.org, linux-tegra@...r.kernel.org,
linux-kernel@...r.kernel.org, Yangtao Li <tiny.windzz@...il.com>
Subject: [PATCH] cpufreq: tegra124: add missing of_node_put()
of_cpu_device_node_get() will increase the refcount of device_node,
it is necessary to call of_node_put() at the end to release the
refcount.
Signed-off-by: Yangtao Li <tiny.windzz@...il.com>
---
drivers/cpufreq/tegra124-cpufreq.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/cpufreq/tegra124-cpufreq.c b/drivers/cpufreq/tegra124-cpufreq.c
index 43530254201a..140a9266b64a 100644
--- a/drivers/cpufreq/tegra124-cpufreq.c
+++ b/drivers/cpufreq/tegra124-cpufreq.c
@@ -118,6 +118,8 @@ static int tegra124_cpufreq_probe(struct platform_device *pdev)
goto out_put_pllx_clk;
}
+ of_node_put(np);
+
ret = tegra124_cpu_switch_to_dfll(priv);
if (ret)
goto out_put_pllp_clk;
--
2.17.0
Powered by blists - more mailing lists