cpufreq: mvebu: fix integer to pointer cast
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 7 Jun 2016 11:30:13 +0000 (12:30 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Jun 2016 21:49:43 +0000 (23:49 +0200)
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>
drivers/cpufreq/mvebu-cpufreq.c

index e920889b9ac29f1499120ecc39b2a429673c405a..ed915ee85dd99418e9ad53621121b94f1509c43e 100644 (file)
@@ -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);