浏览代码

cpufreq: speedstep: fix speedstep_detect_processor()'s return type

speedstep_detect_processor() is declared as returing an
'enum speedstep_processor' but use an 'int' in its definition.

Fix this by using 'enum speedstep_processor' in its definition too.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Luc Van Oostenryck 7 年之前
父节点
当前提交
df21443ff6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/cpufreq/speedstep-lib.c

+ 1 - 1
drivers/cpufreq/speedstep-lib.c

@@ -252,7 +252,7 @@ EXPORT_SYMBOL_GPL(speedstep_get_frequency);
  *********************************************************************/
  *********************************************************************/
 
 
 /* Keep in sync with the x86_cpu_id tables in the different modules */
 /* Keep in sync with the x86_cpu_id tables in the different modules */
-unsigned int speedstep_detect_processor(void)
+enum speedstep_processor speedstep_detect_processor(void)
 {
 {
 	struct cpuinfo_x86 *c = &cpu_data(0);
 	struct cpuinfo_x86 *c = &cpu_data(0);
 	u32 ebx, msr_lo, msr_hi;
 	u32 ebx, msr_lo, msr_hi;