cpufreq: tegra124: add missing of_node_put()
authorYangtao Li <tiny.windzz@gmail.com>
Mon, 4 Feb 2019 07:48:54 +0000 (02:48 -0500)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 7 Feb 2019 04:31:51 +0000 (10:01 +0530)
commit446fae2bb5395f3028d8e3aae1508737e5a72ea1
treeef5d42cc0fa474f522deb06242ab95b428c00497
parent50c0b12f098fb3cfac7abcc0f2b5409f6bac5fa2
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.

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>
drivers/cpufreq/tegra124-cpufreq.c