aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/evrgnini.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/evrgnini.c')
-rw-r--r--drivers/acpi/acpica/evrgnini.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/drivers/acpi/acpica/evrgnini.c b/drivers/acpi/acpica/evrgnini.c
index f40d271bf568..55a5d35ef34a 100644
--- a/drivers/acpi/acpica/evrgnini.c
+++ b/drivers/acpi/acpica/evrgnini.c
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2010, Intel Corp. 8 * Copyright (C) 2000 - 2011, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
@@ -289,8 +289,8 @@ acpi_ev_pci_config_region_setup(acpi_handle handle,
289 } 289 }
290 290
291 /* 291 /*
292 * Get the PCI device and function numbers from the _ADR object contained 292 * Get the PCI device and function numbers from the _ADR object
293 * in the parent's scope. 293 * contained in the parent's scope.
294 */ 294 */
295 status = acpi_ut_evaluate_numeric_object(METHOD_NAME__ADR, 295 status = acpi_ut_evaluate_numeric_object(METHOD_NAME__ADR,
296 pci_device_node, &pci_value); 296 pci_device_node, &pci_value);
@@ -320,9 +320,15 @@ acpi_ev_pci_config_region_setup(acpi_handle handle,
320 pci_id->bus = ACPI_LOWORD(pci_value); 320 pci_id->bus = ACPI_LOWORD(pci_value);
321 } 321 }
322 322
323 /* Complete this device's pci_id */ 323 /* Complete/update the PCI ID for this device */
324 324
325 acpi_os_derive_pci_id(pci_root_node, region_obj->region.node, &pci_id); 325 status =
326 acpi_hw_derive_pci_id(pci_id, pci_root_node,
327 region_obj->region.node);
328 if (ACPI_FAILURE(status)) {
329 ACPI_FREE(pci_id);
330 return_ACPI_STATUS(status);
331 }
326 332
327 *region_context = pci_id; 333 *region_context = pci_id;
328 return_ACPI_STATUS(AE_OK); 334 return_ACPI_STATUS(AE_OK);
@@ -584,9 +590,9 @@ acpi_ev_initialize_region(union acpi_operand_object *region_obj,
584 * See acpi_ns_exec_module_code 590 * See acpi_ns_exec_module_code
585 */ 591 */
586 if (obj_desc->method. 592 if (obj_desc->method.
587 flags & AOPOBJ_MODULE_LEVEL) { 593 info_flags & ACPI_METHOD_MODULE_LEVEL) {
588 handler_obj = 594 handler_obj =
589 obj_desc->method.extra.handler; 595 obj_desc->method.dispatch.handler;
590 } 596 }
591 break; 597 break;
592 598
@@ -631,7 +637,7 @@ acpi_ev_initialize_region(union acpi_operand_object *region_obj,
631 637
632 status = 638 status =
633 acpi_ev_execute_reg_method 639 acpi_ev_execute_reg_method
634 (region_obj, 1); 640 (region_obj, ACPI_REG_CONNECT);
635 641
636 if (acpi_ns_locked) { 642 if (acpi_ns_locked) {
637 status = 643 status =