Skip to content

Commit

Permalink
cpufreq: armada-37xx: stop using 0 as NULL pointer
Browse files Browse the repository at this point in the history
[ Upstream commit 08f0adb ]

Use NULL for NULL pointer to fix the following sparse warning:
drivers/cpufreq/armada-37xx-cpufreq.c:448:32: sparse: warning: Using plain integer as NULL pointer

Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
milesdotchen authored and gregkh committed Feb 1, 2023
1 parent 141fe35 commit 74ed6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpufreq/armada-37xx-cpufreq.c
Expand Up @@ -445,7 +445,7 @@ static int __init armada37xx_cpufreq_driver_init(void)
return -ENODEV;
}

clk = clk_get(cpu_dev, 0);
clk = clk_get(cpu_dev, NULL);
if (IS_ERR(clk)) {
dev_err(cpu_dev, "Cannot get clock for CPU0\n");
return PTR_ERR(clk);
Expand Down

0 comments on commit 74ed6ee

Please sign in to comment.