diff options
-rw-r--r-- | drivers/pci/pci-acpi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index b1bd6e6155a3..951021838055 100644 --- a/drivers/pci/pci-acpi.c +++ b/drivers/pci/pci-acpi.c | |||
@@ -23,6 +23,7 @@ struct acpi_osc_data { | |||
23 | acpi_handle handle; | 23 | acpi_handle handle; |
24 | u32 support_set; | 24 | u32 support_set; |
25 | u32 control_set; | 25 | u32 control_set; |
26 | int is_queried; | ||
26 | u32 query_result; | 27 | u32 query_result; |
27 | struct list_head sibiling; | 28 | struct list_head sibiling; |
28 | }; | 29 | }; |
@@ -147,6 +148,7 @@ static acpi_status acpi_query_osc(acpi_handle handle, | |||
147 | if (ACPI_SUCCESS(status)) { | 148 | if (ACPI_SUCCESS(status)) { |
148 | osc_data->support_set = support_set; | 149 | osc_data->support_set = support_set; |
149 | osc_data->query_result = osc_args.query_result; | 150 | osc_data->query_result = osc_args.query_result; |
151 | osc_data->is_queried = 1; | ||
150 | } | 152 | } |
151 | 153 | ||
152 | return status; | 154 | return status; |
@@ -203,7 +205,7 @@ acpi_status pci_osc_control_set(acpi_handle handle, u32 flags) | |||
203 | if (!ctrlset) | 205 | if (!ctrlset) |
204 | return AE_TYPE; | 206 | return AE_TYPE; |
205 | 207 | ||
206 | if (osc_data->support_set && | 208 | if (osc_data->is_queried && |
207 | ((osc_data->query_result & ctrlset) != ctrlset)) | 209 | ((osc_data->query_result & ctrlset) != ctrlset)) |
208 | return AE_SUPPORT; | 210 | return AE_SUPPORT; |
209 | 211 | ||