diff options
Diffstat (limited to 'drivers/acpi/events/evrgnini.c')
-rw-r--r-- | drivers/acpi/events/evrgnini.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/acpi/events/evrgnini.c b/drivers/acpi/events/evrgnini.c index 1cecd577b899..5b3c7a85eb9a 100644 --- a/drivers/acpi/events/evrgnini.c +++ b/drivers/acpi/events/evrgnini.c | |||
@@ -475,8 +475,9 @@ acpi_ev_initialize_region(union acpi_operand_object *region_obj, | |||
475 | 475 | ||
476 | /* Find any "_REG" method associated with this region definition */ | 476 | /* Find any "_REG" method associated with this region definition */ |
477 | 477 | ||
478 | status = acpi_ns_search_node(*reg_name_ptr, node, | 478 | status = |
479 | ACPI_TYPE_METHOD, &method_node); | 479 | acpi_ns_search_one_scope(*reg_name_ptr, node, ACPI_TYPE_METHOD, |
480 | &method_node); | ||
480 | if (ACPI_SUCCESS(status)) { | 481 | if (ACPI_SUCCESS(status)) { |
481 | /* | 482 | /* |
482 | * The _REG method is optional and there can be only one per region | 483 | * The _REG method is optional and there can be only one per region |