Commit afe244f6 authored by Len Brown's avatar Len Brown

Merge intel.com:/home/lenb/src/26-stable-dev

into intel.com:/home/lenb/src/26-latest-dev
parents dac0b80e 2780cc46
...@@ -282,15 +282,6 @@ acpi_enter_sleep_state ( ...@@ -282,15 +282,6 @@ acpi_enter_sleep_state (
return_ACPI_STATUS (status); return_ACPI_STATUS (status);
} }
if (sleep_state != ACPI_STATE_S5) {
/* Disable BM arbitration */
status = acpi_set_register (ACPI_BITREG_ARB_DISABLE, 1, ACPI_MTX_DO_NOT_LOCK);
if (ACPI_FAILURE (status)) {
return_ACPI_STATUS (status);
}
}
/* /*
* 1) Disable/Clear all GPEs * 1) Disable/Clear all GPEs
* 2) Enable all wakeup GPEs * 2) Enable all wakeup GPEs
...@@ -581,13 +572,6 @@ acpi_leave_sleep_state ( ...@@ -581,13 +572,6 @@ acpi_leave_sleep_state (
(void) acpi_set_register(acpi_gbl_fixed_event_info[ACPI_EVENT_POWER_BUTTON].status_register_id, (void) acpi_set_register(acpi_gbl_fixed_event_info[ACPI_EVENT_POWER_BUTTON].status_register_id,
1, ACPI_MTX_DO_NOT_LOCK); 1, ACPI_MTX_DO_NOT_LOCK);
/* Enable BM arbitration */
status = acpi_set_register (ACPI_BITREG_ARB_DISABLE, 0, ACPI_MTX_LOCK);
if (ACPI_FAILURE (status)) {
return_ACPI_STATUS (status);
}
arg.integer.value = ACPI_SST_WORKING; arg.integer.value = ACPI_SST_WORKING;
status = acpi_evaluate_object (NULL, METHOD_NAME__SST, &arg_list, NULL); status = acpi_evaluate_object (NULL, METHOD_NAME__SST, &arg_list, NULL);
if (ACPI_FAILURE (status) && status != AE_NOT_FOUND) { if (ACPI_FAILURE (status) && status != AE_NOT_FOUND) {
......
...@@ -197,7 +197,7 @@ acpi_pci_irq_add_prt ( ...@@ -197,7 +197,7 @@ acpi_pci_irq_add_prt (
* (either a PCI root bridge or PCI-PCI bridge). * (either a PCI root bridge or PCI-PCI bridge).
*/ */
buffer.length = sizeof(pathname); buffer.length = ACPI_PATHNAME_MAX;
buffer.pointer = pathname; buffer.pointer = pathname;
acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer); acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer);
...@@ -210,17 +210,16 @@ acpi_pci_irq_add_prt ( ...@@ -210,17 +210,16 @@ acpi_pci_irq_add_prt (
buffer.length = 0; buffer.length = 0;
buffer.pointer = NULL; buffer.pointer = NULL;
kfree(pathname);
status = acpi_get_irq_routing_table(handle, &buffer); status = acpi_get_irq_routing_table(handle, &buffer);
if (status != AE_BUFFER_OVERFLOW) { if (status != AE_BUFFER_OVERFLOW) {
ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Error evaluating _PRT [%s]\n", ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Error evaluating _PRT [%s]\n",
acpi_format_exception(status))); acpi_format_exception(status)));
kfree(pathname);
return_VALUE(-ENODEV); return_VALUE(-ENODEV);
} }
prt = kmalloc(buffer.length, GFP_KERNEL); prt = kmalloc(buffer.length, GFP_KERNEL);
if (!prt){ if (!prt){
kfree(pathname);
return_VALUE(-ENOMEM); return_VALUE(-ENOMEM);
} }
memset(prt, 0, buffer.length); memset(prt, 0, buffer.length);
...@@ -230,7 +229,6 @@ acpi_pci_irq_add_prt ( ...@@ -230,7 +229,6 @@ acpi_pci_irq_add_prt (
if (ACPI_FAILURE(status)) { if (ACPI_FAILURE(status)) {
ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Error evaluating _PRT [%s]\n", ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Error evaluating _PRT [%s]\n",
acpi_format_exception(status))); acpi_format_exception(status)));
kfree(pathname);
kfree(buffer.pointer); kfree(buffer.pointer);
return_VALUE(-ENODEV); return_VALUE(-ENODEV);
} }
...@@ -243,7 +241,6 @@ acpi_pci_irq_add_prt ( ...@@ -243,7 +241,6 @@ acpi_pci_irq_add_prt (
((unsigned long) entry + entry->length); ((unsigned long) entry + entry->length);
} }
kfree(pathname);
kfree(prt); kfree(prt);
return_VALUE(0); return_VALUE(0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment