forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/drivers/acpi/acpica/nsload.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: nsload - namespace loading/expanding/contracting procedures
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -24,7 +24,6 @@
2424 static acpi_status acpi_ns_delete_subtree(acpi_handle start_handle);
2525 #endif
2626
27
-#ifndef ACPI_NO_METHOD_EXECUTION
2827 /*******************************************************************************
2928 *
3029 * FUNCTION: acpi_ns_load_table
....@@ -76,7 +75,7 @@
7675 /*
7776 * On error, delete any namespace objects created by this table.
7877 * We cannot initialize these objects, so delete them. There are
79
- * a couple of expecially bad cases:
78
+ * a couple of especially bad cases:
8079 * AE_ALREADY_EXISTS - namespace collision.
8180 * AE_NOT_FOUND - the target of a Scope operator does not
8281 * exist. This target of Scope must already exist in the
....@@ -110,18 +109,6 @@
110109 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
111110 "**** Completed Table Object Initialization\n"));
112111
113
- /*
114
- * This case handles the legacy option that groups all module-level
115
- * code blocks together and defers execution until all of the tables
116
- * are loaded. Execute all of these blocks at this time.
117
- * Execute any module-level code that was detected during the table
118
- * load phase.
119
- *
120
- * Note: this option is deprecated and will be eliminated in the
121
- * future. Use of this option can cause problems with AML code that
122
- * depends upon in-order immediate execution of module-level code.
123
- */
124
- acpi_ns_exec_module_code_list();
125112 return_ACPI_STATUS(status);
126113 }
127114
....@@ -296,5 +283,4 @@
296283 status = acpi_ns_delete_subtree(handle);
297284 return_ACPI_STATUS(status);
298285 }
299
-#endif
300286 #endif