summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYangtao Li <tiny.windzz@gmail.com>2019-02-04 02:48:54 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-23 13:19:48 +0100
commit4ddd6174e37f5eaa1e3f43850f43ed21b3538d41 (patch)
tree732c53611f74da9df975e7d4bf962a289b253834 /drivers
parentb9ad2daba5a55255af08cb5ae81367f226ab8ae6 (diff)
cpufreq: tegra124: add missing of_node_put()
commit 446fae2bb5395f3028d8e3aae1508737e5a72ea1 upstream. 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. Fixes: 9eb15dbbfa1a2 ("cpufreq: Add cpufreq driver for Tegra124") Cc: <stable@vger.kernel.org> # 4.4+ Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cpufreq/tegra124-cpufreq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/cpufreq/tegra124-cpufreq.c b/drivers/cpufreq/tegra124-cpufreq.c
index 43530254201a..4bb154f6c54c 100644
--- a/drivers/cpufreq/tegra124-cpufreq.c
+++ b/drivers/cpufreq/tegra124-cpufreq.c
@@ -134,6 +134,8 @@ static int tegra124_cpufreq_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, priv);
+ of_node_put(np);
+
return 0;
out_switch_to_pllx: