aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r--drivers/acpi/processor_idle.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 70d8a6ec0920..5b6a9865300e 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -690,7 +690,7 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr)
690 690
691 /* Validate number of power states discovered */ 691 /* Validate number of power states discovered */
692 if (pr->power.count < 2) 692 if (pr->power.count < 2)
693 status = -ENODEV; 693 status = -EFAULT;
694 694
695 end: 695 end:
696 acpi_os_free(buffer.pointer); 696 acpi_os_free(buffer.pointer);
@@ -841,11 +841,11 @@ static int acpi_processor_get_power_info(struct acpi_processor *pr)
841 * this function */ 841 * this function */
842 842
843 result = acpi_processor_get_power_info_cst(pr); 843 result = acpi_processor_get_power_info_cst(pr);
844 if ((result) || (acpi_processor_power_verify(pr) < 2)) { 844 if (result == -ENODEV)
845 result = acpi_processor_get_power_info_fadt(pr); 845 result = acpi_processor_get_power_info_fadt(pr);
846 if ((result) || (acpi_processor_power_verify(pr) < 2)) 846
847 result = acpi_processor_get_power_info_default_c1(pr); 847 if ((result) || (acpi_processor_power_verify(pr) < 2))
848 } 848 result = acpi_processor_get_power_info_default_c1(pr);
849 849
850 /* 850 /*
851 * Set Default Policy 851 * Set Default Policy