aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/namespace/nsload.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/namespace/nsload.c')
-rw-r--r--drivers/acpi/namespace/nsload.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/acpi/namespace/nsload.c b/drivers/acpi/namespace/nsload.c
index 80acfd35f3ec..fe75d888e183 100644
--- a/drivers/acpi/namespace/nsload.c
+++ b/drivers/acpi/namespace/nsload.c
@@ -77,7 +77,7 @@ acpi_ns_load_table(struct acpi_table_desc *table_desc,
77{ 77{
78 acpi_status status; 78 acpi_status status;
79 79
80 ACPI_FUNCTION_TRACE("ns_load_table"); 80 ACPI_FUNCTION_TRACE(ns_load_table);
81 81
82 /* Check if table contains valid AML (must be DSDT, PSDT, SSDT, etc.) */ 82 /* Check if table contains valid AML (must be DSDT, PSDT, SSDT, etc.) */
83 83
@@ -169,7 +169,7 @@ static acpi_status acpi_ns_load_table_by_type(acpi_table_type table_type)
169 acpi_status status; 169 acpi_status status;
170 struct acpi_table_desc *table_desc; 170 struct acpi_table_desc *table_desc;
171 171
172 ACPI_FUNCTION_TRACE("ns_load_table_by_type"); 172 ACPI_FUNCTION_TRACE(ns_load_table_by_type);
173 173
174 status = acpi_ut_acquire_mutex(ACPI_MTX_TABLES); 174 status = acpi_ut_acquire_mutex(ACPI_MTX_TABLES);
175 if (ACPI_FAILURE(status)) { 175 if (ACPI_FAILURE(status)) {
@@ -181,11 +181,11 @@ static acpi_status acpi_ns_load_table_by_type(acpi_table_type table_type)
181 * DSDT (one), SSDT/PSDT (multiple) 181 * DSDT (one), SSDT/PSDT (multiple)
182 */ 182 */
183 switch (table_type) { 183 switch (table_type) {
184 case ACPI_TABLE_DSDT: 184 case ACPI_TABLE_ID_DSDT:
185 185
186 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Namespace load: DSDT\n")); 186 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Namespace load: DSDT\n"));
187 187
188 table_desc = acpi_gbl_table_lists[ACPI_TABLE_DSDT].next; 188 table_desc = acpi_gbl_table_lists[ACPI_TABLE_ID_DSDT].next;
189 189
190 /* If table already loaded into namespace, just return */ 190 /* If table already loaded into namespace, just return */
191 191
@@ -201,8 +201,8 @@ static acpi_status acpi_ns_load_table_by_type(acpi_table_type table_type)
201 } 201 }
202 break; 202 break;
203 203
204 case ACPI_TABLE_SSDT: 204 case ACPI_TABLE_ID_SSDT:
205 case ACPI_TABLE_PSDT: 205 case ACPI_TABLE_ID_PSDT:
206 206
207 ACPI_DEBUG_PRINT((ACPI_DB_INFO, 207 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
208 "Namespace load: %d SSDT or PSDTs\n", 208 "Namespace load: %d SSDT or PSDTs\n",
@@ -259,7 +259,7 @@ acpi_status acpi_ns_load_namespace(void)
259{ 259{
260 acpi_status status; 260 acpi_status status;
261 261
262 ACPI_FUNCTION_TRACE("acpi_load_name_space"); 262 ACPI_FUNCTION_TRACE(acpi_load_name_space);
263 263
264 /* There must be at least a DSDT installed */ 264 /* There must be at least a DSDT installed */
265 265
@@ -272,15 +272,15 @@ acpi_status acpi_ns_load_namespace(void)
272 * Load the namespace. The DSDT is required, 272 * Load the namespace. The DSDT is required,
273 * but the SSDT and PSDT tables are optional. 273 * but the SSDT and PSDT tables are optional.
274 */ 274 */
275 status = acpi_ns_load_table_by_type(ACPI_TABLE_DSDT); 275 status = acpi_ns_load_table_by_type(ACPI_TABLE_ID_DSDT);
276 if (ACPI_FAILURE(status)) { 276 if (ACPI_FAILURE(status)) {
277 return_ACPI_STATUS(status); 277 return_ACPI_STATUS(status);
278 } 278 }
279 279
280 /* Ignore exceptions from these */ 280 /* Ignore exceptions from these */
281 281
282 (void)acpi_ns_load_table_by_type(ACPI_TABLE_SSDT); 282 (void)acpi_ns_load_table_by_type(ACPI_TABLE_ID_SSDT);
283 (void)acpi_ns_load_table_by_type(ACPI_TABLE_PSDT); 283 (void)acpi_ns_load_table_by_type(ACPI_TABLE_ID_PSDT);
284 284
285 ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, 285 ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT,
286 "ACPI Namespace successfully loaded at root %p\n", 286 "ACPI Namespace successfully loaded at root %p\n",
@@ -315,7 +315,7 @@ static acpi_status acpi_ns_delete_subtree(acpi_handle start_handle)
315 acpi_handle dummy; 315 acpi_handle dummy;
316 u32 level; 316 u32 level;
317 317
318 ACPI_FUNCTION_TRACE("ns_delete_subtree"); 318 ACPI_FUNCTION_TRACE(ns_delete_subtree);
319 319
320 parent_handle = start_handle; 320 parent_handle = start_handle;
321 child_handle = NULL; 321 child_handle = NULL;
@@ -395,7 +395,7 @@ acpi_status acpi_ns_unload_namespace(acpi_handle handle)
395{ 395{
396 acpi_status status; 396 acpi_status status;
397 397
398 ACPI_FUNCTION_TRACE("ns_unload_name_space"); 398 ACPI_FUNCTION_TRACE(ns_unload_name_space);
399 399
400 /* Parameter validation */ 400 /* Parameter validation */
401 401