summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/nsaccess.c
diff options
context:
space:
mode:
authorErik Schmauss <erik.schmauss@intel.com>2018-06-29 20:28:11 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-07-09 11:14:45 +0200
commitda7f7126f04c37cf0b33a75b7a5dd3c1b2adfa2b (patch)
tree72678c8122fd1d3812615ea3572cddf75e4fef9b /drivers/acpi/acpica/nsaccess.c
parentLinux 4.18-rc4 (diff)
downloadlinux-da7f7126f04c37cf0b33a75b7a5dd3c1b2adfa2b.tar.xz
linux-da7f7126f04c37cf0b33a75b7a5dd3c1b2adfa2b.zip
ACPICA: Revert "iASL: change processing of external op namespace nodes for correctness"
Revert commit b43eac6f3384 (ACPICA: iASL: change processing of external op namespace nodes for correctness; upstream ACPICA commit aa866a9b4f24bbec9f158d10325b486d7d12d90f). This was done in order to allow more relaxed usage of ASL external declarations. Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/nsaccess.c')
-rw-r--r--drivers/acpi/acpica/nsaccess.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/acpi/acpica/nsaccess.c b/drivers/acpi/acpica/nsaccess.c
index 220a718fbce9..3c571fe98990 100644
--- a/drivers/acpi/acpica/nsaccess.c
+++ b/drivers/acpi/acpica/nsaccess.c
@@ -608,18 +608,17 @@ acpi_ns_lookup(union acpi_generic_state *scope_info,
this_node->object;
}
}
+#ifdef ACPI_ASL_COMPILER
+ if (!acpi_gbl_disasm_flag &&
+ (this_node->flags & ANOBJ_IS_EXTERNAL)) {
+ this_node->flags |= IMPLICIT_EXTERNAL;
+ }
+#endif
}
/* Special handling for the last segment (num_segments == 0) */
else {
-#ifdef ACPI_ASL_COMPILER
- if (!acpi_gbl_disasm_flag
- && (this_node->flags & ANOBJ_IS_EXTERNAL)) {
- this_node->flags &= ~IMPLICIT_EXTERNAL;
- }
-#endif
-
/*
* Sanity typecheck of the target object:
*