diff options
author | Miles Chen <miles.chen@mediatek.com> | 2023-01-10 11:12:52 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-01 08:34:31 +0100 |
commit | 74ed6ee3704c0e15111e182e3b50f7de48b6e912 (patch) | |
tree | 39a35ecc3dbf1b0e47d220697e6e87ef508969dc /drivers/cpufreq | |
parent | 141fe35cb13e63aca9e6e2c1d81fed880db273a1 (diff) | |
download | linux-stable-74ed6ee3704c0e15111e182e3b50f7de48b6e912.tar.gz linux-stable-74ed6ee3704c0e15111e182e3b50f7de48b6e912.tar.bz2 linux-stable-74ed6ee3704c0e15111e182e3b50f7de48b6e912.zip |
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: Miles Chen <miles.chen@mediatek.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/armada-37xx-cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/armada-37xx-cpufreq.c b/drivers/cpufreq/armada-37xx-cpufreq.c index c10fc33b29b1..b74289a95a17 100644 --- a/drivers/cpufreq/armada-37xx-cpufreq.c +++ b/drivers/cpufreq/armada-37xx-cpufreq.c @@ -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); |