Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3163f4ed authored by Miles Chen's avatar Miles Chen Committed by Greg Kroah-Hartman
Browse files

cpufreq: armada-37xx: stop using 0 as NULL pointer



[ Upstream commit 08f0adb193c008de640fde34a2e00a666c01d77c ]

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: default avatarMiles Chen <miles.chen@mediatek.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 1ec79234
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -443,7 +443,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);