Skip to content

Commit 08f0adb

Browse files
milesdotchenvireshk
authored andcommitted
cpufreq: armada-37xx: stop using 0 as NULL pointer
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 <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent c956541 commit 08f0adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpufreq/armada-37xx-cpufreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ static int __init armada37xx_cpufreq_driver_init(void)
445445
return -ENODEV;
446446
}
447447

448-
clk = clk_get(cpu_dev, 0);
448+
clk = clk_get(cpu_dev, NULL);
449449
if (IS_ERR(clk)) {
450450
dev_err(cpu_dev, "Cannot get clock for CPU0\n");
451451
return PTR_ERR(clk);

0 commit comments

Comments
 (0)