Skip to content

Commit

Permalink
cpufreq: mvebu: fix integer to pointer cast
Browse files Browse the repository at this point in the history
Fix the use of 0 instead of NULL to clk_get() call. This stops the
following warning:

drivers/cpufreq/mvebu-cpufreq.c:73:40: warning: Using plain integer as NULL pointer

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Ben Dooks authored and Rafael J. Wysocki committed Jun 13, 2016
1 parent 41bad47 commit a0944d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpufreq/mvebu-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static int __init armada_xp_pmsu_cpufreq_init(void)
continue;
}

clk = clk_get(cpu_dev, 0);
clk = clk_get(cpu_dev, NULL);
if (IS_ERR(clk)) {
pr_err("Cannot get clock for CPU %d\n", cpu);
return PTR_ERR(clk);
Expand Down

0 comments on commit a0944d9

Please sign in to comment.