aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/tbinstal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/tbinstal.c')
-rw-r--r--drivers/acpi/acpica/tbinstal.c39
1 files changed, 1 insertions, 38 deletions
diff --git a/drivers/acpi/acpica/tbinstal.c b/drivers/acpi/acpica/tbinstal.c
index 7e69bc73bd16..008a251780f4 100644
--- a/drivers/acpi/acpica/tbinstal.c
+++ b/drivers/acpi/acpica/tbinstal.c
@@ -356,7 +356,7 @@ acpi_tb_install_standard_table(acpi_physical_address address,
356 356
357 /* Add the table to the global root table list */ 357 /* Add the table to the global root table list */
358 358
359 status = acpi_tb_get_next_root_index(&i); 359 status = acpi_tb_get_next_table_descriptor(&i, NULL);
360 if (ACPI_FAILURE(status)) { 360 if (ACPI_FAILURE(status)) {
361 goto release_and_exit; 361 goto release_and_exit;
362 } 362 }
@@ -457,43 +457,6 @@ finish_override:
457 457
458/******************************************************************************* 458/*******************************************************************************
459 * 459 *
460 * FUNCTION: acpi_tb_store_table
461 *
462 * PARAMETERS: address - Table address
463 * table - Table header
464 * length - Table length
465 * flags - Install flags
466 * table_index - Where the table index is returned
467 *
468 * RETURN: Status and table index.
469 *
470 * DESCRIPTION: Add an ACPI table to the global table list
471 *
472 ******************************************************************************/
473
474acpi_status
475acpi_tb_store_table(acpi_physical_address address,
476 struct acpi_table_header * table,
477 u32 length, u8 flags, u32 *table_index)
478{
479 acpi_status status;
480 struct acpi_table_desc *table_desc;
481
482 status = acpi_tb_get_next_root_index(table_index);
483 if (ACPI_FAILURE(status)) {
484 return (status);
485 }
486
487 /* Initialize added table */
488
489 table_desc = &acpi_gbl_root_table_list.tables[*table_index];
490 acpi_tb_init_table_descriptor(table_desc, address, flags, table);
491 table_desc->pointer = table;
492 return (AE_OK);
493}
494
495/*******************************************************************************
496 *
497 * FUNCTION: acpi_tb_uninstall_table 460 * FUNCTION: acpi_tb_uninstall_table
498 * 461 *
499 * PARAMETERS: table_desc - Table descriptor 462 * PARAMETERS: table_desc - Table descriptor