- if (status == AE_NOT_FOUND) {
- acpi_dm_add_to_external_list (path);
- status = AE_OK;
- }
- else {
- ACPI_REPORT_NSERROR (path, status);
- }
-#else
- ACPI_REPORT_NSERROR (path, status);
+ if (status == AE_NOT_FOUND) {
+ /*
+ * Table disassembly:
+ * Target of Scope() not found. Generate an External for it, and
+ * insert the name into the namespace.
+ */
+ acpi_dm_add_to_external_list (path);
+ status = acpi_ns_lookup (walk_state->scope_info, path, object_type,
+ ACPI_IMODE_LOAD_PASS1, ACPI_NS_SEARCH_PARENT, walk_state, &(node));
+ }