From: Ben Dooks Date: Tue, 7 Jun 2016 11:30:13 +0000 (+0100) Subject: cpufreq: mvebu: fix integer to pointer cast X-Git-Tag: v4.8-rc1~158^2~3^2~14^2~3^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a0944d904f951466047cb7ae625fc17927084e59;p=karo-tx-linux.git cpufreq: mvebu: fix integer to pointer cast 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 Acked-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/mvebu-cpufreq.c b/drivers/cpufreq/mvebu-cpufreq.c index e920889b9ac2..ed915ee85dd9 100644 --- a/drivers/cpufreq/mvebu-cpufreq.c +++ b/drivers/cpufreq/mvebu-cpufreq.c @@ -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);