aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pci-acpi.c')
-rw-r--r--drivers/pci/pci-acpi.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c
index 981919d163a0..dfe7c8e1b185 100644
--- a/drivers/pci/pci-acpi.c
+++ b/drivers/pci/pci-acpi.c
@@ -149,20 +149,19 @@ static acpi_status acpi_query_osc(acpi_handle handle,
149 149
150 status = acpi_get_handle(handle, "_OSC", &tmp); 150 status = acpi_get_handle(handle, "_OSC", &tmp);
151 if (ACPI_FAILURE(status)) 151 if (ACPI_FAILURE(status))
152 return status; 152 return AE_OK;
153 153
154 mutex_lock(&pci_acpi_lock); 154 mutex_lock(&pci_acpi_lock);
155 osc_data = acpi_get_osc_data(handle); 155 osc_data = acpi_get_osc_data(handle);
156 if (!osc_data) { 156 if (!osc_data) {
157 printk(KERN_ERR "acpi osc data array is full\n"); 157 printk(KERN_ERR "acpi osc data array is full\n");
158 status = AE_ERROR;
159 goto out; 158 goto out;
160 } 159 }
161 160
162 status = __acpi_query_osc(flags, osc_data, &dummy); 161 __acpi_query_osc(flags, osc_data, &dummy);
163out: 162out:
164 mutex_unlock(&pci_acpi_lock); 163 mutex_unlock(&pci_acpi_lock);
165 return status; 164 return AE_OK;
166} 165}
167 166
168/** 167/**