Browse Source

[CPUFREQ] Propagate acpi_processor_preregister_performance return value.

Note how any error from acpi_processor_preregister_performance is ignored.

From: bert hubert <bert.hubert@netherlabs.nl>
Signed-off-by: Dave Jones <davej@redhat.com>
bert hubert 19 years ago
parent
commit
12e704db80
1 changed files with 1 additions and 2 deletions
  1. 1 2
      arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c

+ 1 - 2
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c

@@ -384,8 +384,7 @@ static int acpi_cpufreq_early_init_acpi(void)
 	}
 
 	/* Do initialization in ACPI core */
-	acpi_processor_preregister_performance(acpi_perf_data);
-	return 0;
+	return acpi_processor_preregister_performance(acpi_perf_data);
 }
 
 static int