X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Facpi%2Fprocessor_thermal.c;h=dc9817cfb882a87f6b640640aeb243988e059c3d;hb=bc61b0102a53ee0ced3a8747cd4afe656a453756;hp=f37584015324ac54b3471351dc4964170c467204;hpb=fc457fa7c0cdbfe96812ba377e508880d600298f;p=powerpc.git diff --git a/drivers/acpi/processor_thermal.c b/drivers/acpi/processor_thermal.c index f375840153..dc9817cfb8 100644 --- a/drivers/acpi/processor_thermal.c +++ b/drivers/acpi/processor_thermal.c @@ -102,8 +102,8 @@ static int cpu_has_cpufreq(unsigned int cpu) { struct cpufreq_policy policy; if (!acpi_thermal_cpufreq_is_init || cpufreq_get_policy(&policy, cpu)) - return -ENODEV; - return 0; + return 0; + return 1; } static int acpi_thermal_cpufreq_increase(unsigned int cpu)