diff options
Diffstat (limited to 'drivers/acpi/namespace/nsaccess.c')
-rw-r--r-- | drivers/acpi/namespace/nsaccess.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/drivers/acpi/namespace/nsaccess.c b/drivers/acpi/namespace/nsaccess.c index 6bdad8bfcf0b..d4914fda6a37 100644 --- a/drivers/acpi/namespace/nsaccess.c +++ b/drivers/acpi/namespace/nsaccess.c | |||
@@ -347,14 +347,17 @@ acpi_ns_lookup(union acpi_generic_state *scope_info, | |||
347 | return_ACPI_STATUS(AE_AML_INTERNAL); | 347 | return_ACPI_STATUS(AE_AML_INTERNAL); |
348 | } | 348 | } |
349 | 349 | ||
350 | /* | 350 | if (!(flags & ACPI_NS_PREFIX_IS_SCOPE)) { |
351 | * This node might not be a actual "scope" node (such as a | 351 | /* |
352 | * Device/Method, etc.) It could be a Package or other object node. | 352 | * This node might not be a actual "scope" node (such as a |
353 | * Backup up the tree to find the containing scope node. | 353 | * Device/Method, etc.) It could be a Package or other object node. |
354 | */ | 354 | * Backup up the tree to find the containing scope node. |
355 | while (!acpi_ns_opens_scope(prefix_node->type) && | 355 | */ |
356 | prefix_node->type != ACPI_TYPE_ANY) { | 356 | while (!acpi_ns_opens_scope(prefix_node->type) && |
357 | prefix_node = acpi_ns_get_parent_node(prefix_node); | 357 | prefix_node->type != ACPI_TYPE_ANY) { |
358 | prefix_node = | ||
359 | acpi_ns_get_parent_node(prefix_node); | ||
360 | } | ||
358 | } | 361 | } |
359 | } | 362 | } |
360 | 363 | ||