[CPUFREQ] Propagate acpi_processor_preregister_performance return value.
authorbert hubert <bert.hubert@netherlabs.nl>
Sun, 30 Jul 2006 19:19:32 +0000 (21:19 +0200)
committerDave Jones <davej@redhat.com>
Mon, 31 Jul 2006 22:37:06 +0000 (18:37 -0400)
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>
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c

index 567b39bea07e4fbbe091b265b010905e3d30ff5a..efb41e81351ce5c9e47ffceba31a03c0daa85166 100644 (file)
@@ -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