From: Yangtao Li Date: Mon, 4 Feb 2019 07:48:54 +0000 (-0500) Subject: cpufreq: tegra124: add missing of_node_put() X-Git-Tag: v5.1-rc1~151^2~1^2~1^2~13^2~1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=446fae2bb5395f3028d8e3aae1508737e5a72ea1;p=uclinux-h8%2Flinux.git 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: # 4.4+ Signed-off-by: Yangtao Li Acked-by: Thierry Reding Signed-off-by: Viresh Kumar --- 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: