Skip to content

Commit

Permalink
cpufreq: tegra124: add missing of_node_put()
Browse files Browse the repository at this point in the history
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: 9eb15db ("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>
  • Loading branch information
Yangtao Li authored and Viresh Kumar committed Feb 7, 2019
1 parent 50c0b12 commit 446fae2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/cpufreq/tegra124-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 446fae2

Please sign in to comment.