Skip to content

Commit 0990319

Browse files
gclementvireshk
authored andcommitted
cpufreq: armada-8k: Fix parameter type warning
The second parameter of clk_get() is of type 'const char *', so use NULL instead of the integer 0 to resolve a sparse warning: drivers/cpufreq/armada-8k-cpufreq.c:60:40: warning: Using plain integer as NULL pointer drivers/cpufreq/armada-8k-cpufreq.c:168:40: warning: Using plain integer as NULL pointer Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent c4a5118 commit 0990319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/cpufreq/armada-8k-cpufreq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static void __init armada_8k_get_sharing_cpus(struct clk *cur_clk,
5757
continue;
5858
}
5959

60-
clk = clk_get(cpu_dev, 0);
60+
clk = clk_get(cpu_dev, NULL);
6161
if (IS_ERR(clk)) {
6262
pr_warn("Cannot get clock for CPU %d\n", cpu);
6363
} else {
@@ -165,7 +165,7 @@ static int __init armada_8k_cpufreq_init(void)
165165
continue;
166166
}
167167

168-
clk = clk_get(cpu_dev, 0);
168+
clk = clk_get(cpu_dev, NULL);
169169

170170
if (IS_ERR(clk)) {
171171
pr_err("Cannot get clock for CPU %d\n", cpu);

0 commit comments

Comments
 (0)