diff mbox

: cpufreq: pcc-cpufreq: don't load driver if get_freq fails during init.

Message ID 20110309135906.6554.54389.sendpatchset@nchumbalkar.americas.hpqcorp.net (mailing list archive)
State New, archived
Headers show

Commit Message

Naga Chumbalkar March 9, 2011, 2:02 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c b/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
index 4f6f679..4a5a42b 100644
--- a/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
+++ b/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
@@ -195,7 +195,7 @@  static unsigned int pcc_get_freq(unsigned int cpu)
 cmd_incomplete:
 	iowrite16(0, &pcch_hdr->status);
 	spin_unlock(&pcc_lock);
-	return -EINVAL;
+	return 0;
 }
 
 static int pcc_cpufreq_target(struct cpufreq_policy *policy,