diff options
Diffstat (limited to 'drivers/acpi/acpica')
-rw-r--r-- | drivers/acpi/acpica/tbxface.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/tbxface.c b/drivers/acpi/acpica/tbxface.c index dbca22651504..a88f02bd6c94 100644 --- a/drivers/acpi/acpica/tbxface.c +++ b/drivers/acpi/acpica/tbxface.c | |||
@@ -363,7 +363,7 @@ ACPI_EXPORT_SYMBOL(acpi_unload_table_id) | |||
363 | 363 | ||
364 | /******************************************************************************* | 364 | /******************************************************************************* |
365 | * | 365 | * |
366 | * FUNCTION: acpi_get_table | 366 | * FUNCTION: acpi_get_table_with_size |
367 | * | 367 | * |
368 | * PARAMETERS: Signature - ACPI signature of needed table | 368 | * PARAMETERS: Signature - ACPI signature of needed table |
369 | * Instance - Which instance (for SSDTs) | 369 | * Instance - Which instance (for SSDTs) |
@@ -375,8 +375,9 @@ ACPI_EXPORT_SYMBOL(acpi_unload_table_id) | |||
375 | * | 375 | * |
376 | ******************************************************************************/ | 376 | ******************************************************************************/ |
377 | acpi_status | 377 | acpi_status |
378 | acpi_get_table(char *signature, | 378 | acpi_get_table_with_size(char *signature, |
379 | u32 instance, struct acpi_table_header **out_table) | 379 | u32 instance, struct acpi_table_header **out_table, |
380 | acpi_size *tbl_size) | ||
380 | { | 381 | { |
381 | u32 i; | 382 | u32 i; |
382 | u32 j; | 383 | u32 j; |
@@ -405,6 +406,7 @@ acpi_get_table(char *signature, | |||
405 | acpi_tb_verify_table(&acpi_gbl_root_table_list.tables[i]); | 406 | acpi_tb_verify_table(&acpi_gbl_root_table_list.tables[i]); |
406 | if (ACPI_SUCCESS(status)) { | 407 | if (ACPI_SUCCESS(status)) { |
407 | *out_table = acpi_gbl_root_table_list.tables[i].pointer; | 408 | *out_table = acpi_gbl_root_table_list.tables[i].pointer; |
409 | *tbl_size = acpi_gbl_root_table_list.tables[i].length; | ||
408 | } | 410 | } |
409 | 411 | ||
410 | if (!acpi_gbl_permanent_mmap) { | 412 | if (!acpi_gbl_permanent_mmap) { |
@@ -417,6 +419,15 @@ acpi_get_table(char *signature, | |||
417 | return (AE_NOT_FOUND); | 419 | return (AE_NOT_FOUND); |
418 | } | 420 | } |
419 | 421 | ||
422 | acpi_status | ||
423 | acpi_get_table(char *signature, | ||
424 | u32 instance, struct acpi_table_header **out_table) | ||
425 | { | ||
426 | acpi_size tbl_size; | ||
427 | |||
428 | return acpi_get_table_with_size(signature, | ||
429 | instance, out_table, &tbl_size); | ||
430 | } | ||
420 | ACPI_EXPORT_SYMBOL(acpi_get_table) | 431 | ACPI_EXPORT_SYMBOL(acpi_get_table) |
421 | 432 | ||
422 | /******************************************************************************* | 433 | /******************************************************************************* |