diff options
author | Lv Zheng <lv.zheng@intel.com> | 2013-10-30 21:30:04 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-10-31 09:37:31 -0400 |
commit | 99567bc5507bf404ae13a0c53264c921f380d06f (patch) | |
tree | 2b1d39e3c8c4a73587cb6d23ce8c81f05400d8c3 /drivers/acpi/acpica/nssearch.c | |
parent | bb42cc224a4626f9eaef34d9a334f0dc65133c40 (diff) |
ACPICA: Update check for setting the ANOBJ_IS_EXTERNAL flag.
The ANOBJ_IS_EXTERNAL flag is only used by an ACPICA utilities - iASL.
No functional change for the Linux kernel should results from applying
this patch, but it helps to reduce source code differences between
the kernel and ACPICA upstream.
[rjw: Subject and changelog]
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/nssearch.c')
-rw-r--r-- | drivers/acpi/acpica/nssearch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/nssearch.c b/drivers/acpi/acpica/nssearch.c index 5d43efc53a61..47420faef073 100644 --- a/drivers/acpi/acpica/nssearch.c +++ b/drivers/acpi/acpica/nssearch.c | |||
@@ -381,7 +381,8 @@ acpi_ns_search_and_enter(u32 target_name, | |||
381 | 381 | ||
382 | /* Node is an object defined by an External() statement */ | 382 | /* Node is an object defined by an External() statement */ |
383 | 383 | ||
384 | if (flags & ACPI_NS_EXTERNAL) { | 384 | if (flags & ACPI_NS_EXTERNAL || |
385 | (walk_state && walk_state->opcode == AML_SCOPE_OP)) { | ||
385 | new_node->flags |= ANOBJ_IS_EXTERNAL; | 386 | new_node->flags |= ANOBJ_IS_EXTERNAL; |
386 | } | 387 | } |
387 | #endif | 388 | #endif |