]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ACPICA: Update check for setting the ANOBJ_IS_EXTERNAL flag.
authorLv Zheng <lv.zheng@intel.com>
Thu, 31 Oct 2013 01:30:04 +0000 (09:30 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 31 Oct 2013 13:37:31 +0000 (14:37 +0100)
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>
drivers/acpi/acpica/nssearch.c

index 5d43efc53a6179ccd4a50e5997be84306891412c..47420faef073b4dada9fa8dc26252639c3213849 100644 (file)
@@ -381,7 +381,8 @@ acpi_ns_search_and_enter(u32 target_name,
 
        /* Node is an object defined by an External() statement */
 
-       if (flags & ACPI_NS_EXTERNAL) {
+       if (flags & ACPI_NS_EXTERNAL ||
+           (walk_state && walk_state->opcode == AML_SCOPE_OP)) {
                new_node->flags |= ANOBJ_IS_EXTERNAL;
        }
 #endif