Skip to content

Commit 4ff5a9b

Browse files
windhlvireshk
authored andcommitted
drivers: cpufreq: Add missing of_node_put() in qoriq-cpufreq.c
In qoriq_cpufreq_probe(), of_find_matching_node() will return a node pointer with refcount incremented. We should use of_node_put() when it is not used anymore. Fixes: 157f527 ("cpufreq: qoriq: convert to a platform driver") [ Viresh: Fixed Author's name in commit log ] Signed-off-by: Liang He <windhl@126.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent f2906aa commit 4ff5a9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/cpufreq/qoriq-cpufreq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ static int qoriq_cpufreq_probe(struct platform_device *pdev)
275275

276276
np = of_find_matching_node(NULL, qoriq_cpufreq_blacklist);
277277
if (np) {
278+
of_node_put(np);
278279
dev_info(&pdev->dev, "Disabling due to erratum A-008083");
279280
return -ENODEV;
280281
}

0 commit comments

Comments
 (0)