diff options
author | Bob Moore <robert.moore@intel.com> | 2009-02-03 01:41:03 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-03-26 16:38:20 -0400 |
commit | 97cbb7d196845ec9a6c0e3cc33ec20503f8c4e73 (patch) | |
tree | 21f2003e2da305ae1106a6135aca052393fc9567 /drivers/acpi | |
parent | ac5f98db7be34cefc244026f882cf030debb7431 (diff) |
ACPICA: Remove extraneous parameter in table manager
Removed the Flags parameter from several internal functions since
it was not being used.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/acpica/actables.h | 7 | ||||
-rw-r--r-- | drivers/acpi/acpica/tbfadt.c | 7 | ||||
-rw-r--r-- | drivers/acpi/acpica/tbutils.c | 14 | ||||
-rw-r--r-- | drivers/acpi/acpica/tbxface.c | 3 |
4 files changed, 14 insertions, 17 deletions
diff --git a/drivers/acpi/acpica/actables.h b/drivers/acpi/acpica/actables.h index 7ce6e33c7f78..d8f8c5df4fbc 100644 --- a/drivers/acpi/acpica/actables.h +++ b/drivers/acpi/acpica/actables.h | |||
@@ -49,7 +49,7 @@ acpi_status acpi_allocate_root_table(u32 initial_table_count); | |||
49 | /* | 49 | /* |
50 | * tbfadt - FADT parse/convert/validate | 50 | * tbfadt - FADT parse/convert/validate |
51 | */ | 51 | */ |
52 | void acpi_tb_parse_fadt(u32 table_index, u8 flags); | 52 | void acpi_tb_parse_fadt(u32 table_index); |
53 | 53 | ||
54 | void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length); | 54 | void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length); |
55 | 55 | ||
@@ -109,9 +109,8 @@ acpi_tb_verify_checksum(struct acpi_table_header *table, u32 length); | |||
109 | 109 | ||
110 | void | 110 | void |
111 | acpi_tb_install_table(acpi_physical_address address, | 111 | acpi_tb_install_table(acpi_physical_address address, |
112 | u8 flags, char *signature, u32 table_index); | 112 | char *signature, u32 table_index); |
113 | 113 | ||
114 | acpi_status | 114 | acpi_status acpi_tb_parse_root_table(acpi_physical_address rsdp_address); |
115 | acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags); | ||
116 | 115 | ||
117 | #endif /* __ACTABLES_H__ */ | 116 | #endif /* __ACTABLES_H__ */ |
diff --git a/drivers/acpi/acpica/tbfadt.c b/drivers/acpi/acpica/tbfadt.c index 3636e4f8fb73..4b683ccd4a94 100644 --- a/drivers/acpi/acpica/tbfadt.c +++ b/drivers/acpi/acpica/tbfadt.c | |||
@@ -172,7 +172,6 @@ acpi_tb_init_generic_address(struct acpi_generic_address *generic_address, | |||
172 | * FUNCTION: acpi_tb_parse_fadt | 172 | * FUNCTION: acpi_tb_parse_fadt |
173 | * | 173 | * |
174 | * PARAMETERS: table_index - Index for the FADT | 174 | * PARAMETERS: table_index - Index for the FADT |
175 | * Flags - Flags | ||
176 | * | 175 | * |
177 | * RETURN: None | 176 | * RETURN: None |
178 | * | 177 | * |
@@ -181,7 +180,7 @@ acpi_tb_init_generic_address(struct acpi_generic_address *generic_address, | |||
181 | * | 180 | * |
182 | ******************************************************************************/ | 181 | ******************************************************************************/ |
183 | 182 | ||
184 | void acpi_tb_parse_fadt(u32 table_index, u8 flags) | 183 | void acpi_tb_parse_fadt(u32 table_index) |
185 | { | 184 | { |
186 | u32 length; | 185 | u32 length; |
187 | struct acpi_table_header *table; | 186 | struct acpi_table_header *table; |
@@ -219,10 +218,10 @@ void acpi_tb_parse_fadt(u32 table_index, u8 flags) | |||
219 | /* Obtain the DSDT and FACS tables via their addresses within the FADT */ | 218 | /* Obtain the DSDT and FACS tables via their addresses within the FADT */ |
220 | 219 | ||
221 | acpi_tb_install_table((acpi_physical_address) acpi_gbl_FADT.Xdsdt, | 220 | acpi_tb_install_table((acpi_physical_address) acpi_gbl_FADT.Xdsdt, |
222 | flags, ACPI_SIG_DSDT, ACPI_TABLE_INDEX_DSDT); | 221 | ACPI_SIG_DSDT, ACPI_TABLE_INDEX_DSDT); |
223 | 222 | ||
224 | acpi_tb_install_table((acpi_physical_address) acpi_gbl_FADT.Xfacs, | 223 | acpi_tb_install_table((acpi_physical_address) acpi_gbl_FADT.Xfacs, |
225 | flags, ACPI_SIG_FACS, ACPI_TABLE_INDEX_FACS); | 224 | ACPI_SIG_FACS, ACPI_TABLE_INDEX_FACS); |
226 | } | 225 | } |
227 | 226 | ||
228 | /******************************************************************************* | 227 | /******************************************************************************* |
diff --git a/drivers/acpi/acpica/tbutils.c b/drivers/acpi/acpica/tbutils.c index e285bedbb989..a0b424356b98 100644 --- a/drivers/acpi/acpica/tbutils.c +++ b/drivers/acpi/acpica/tbutils.c | |||
@@ -280,7 +280,6 @@ u8 acpi_tb_checksum(u8 *buffer, u32 length) | |||
280 | * FUNCTION: acpi_tb_install_table | 280 | * FUNCTION: acpi_tb_install_table |
281 | * | 281 | * |
282 | * PARAMETERS: Address - Physical address of DSDT or FACS | 282 | * PARAMETERS: Address - Physical address of DSDT or FACS |
283 | * Flags - Flags | ||
284 | * Signature - Table signature, NULL if no need to | 283 | * Signature - Table signature, NULL if no need to |
285 | * match | 284 | * match |
286 | * table_index - Index into root table array | 285 | * table_index - Index into root table array |
@@ -296,8 +295,9 @@ u8 acpi_tb_checksum(u8 *buffer, u32 length) | |||
296 | 295 | ||
297 | void | 296 | void |
298 | acpi_tb_install_table(acpi_physical_address address, | 297 | acpi_tb_install_table(acpi_physical_address address, |
299 | u8 flags, char *signature, u32 table_index) | 298 | char *signature, u32 table_index) |
300 | { | 299 | { |
300 | u8 flags; | ||
301 | acpi_status status; | 301 | acpi_status status; |
302 | struct acpi_table_header *table_to_install; | 302 | struct acpi_table_header *table_to_install; |
303 | struct acpi_table_header *mapped_table; | 303 | struct acpi_table_header *mapped_table; |
@@ -344,12 +344,13 @@ acpi_tb_install_table(acpi_physical_address address, | |||
344 | 344 | ||
345 | acpi_gbl_root_table_list.tables[table_index].pointer = | 345 | acpi_gbl_root_table_list.tables[table_index].pointer = |
346 | override_table; | 346 | override_table; |
347 | flags = ACPI_TABLE_ORIGIN_OVERRIDE; | ||
348 | address = ACPI_PTR_TO_PHYSADDR(override_table); | 347 | address = ACPI_PTR_TO_PHYSADDR(override_table); |
349 | 348 | ||
350 | table_to_install = override_table; | 349 | table_to_install = override_table; |
350 | flags = ACPI_TABLE_ORIGIN_OVERRIDE; | ||
351 | } else { | 351 | } else { |
352 | table_to_install = mapped_table; | 352 | table_to_install = mapped_table; |
353 | flags = ACPI_TABLE_ORIGIN_MAPPED; | ||
353 | } | 354 | } |
354 | 355 | ||
355 | /* Initialize the table entry */ | 356 | /* Initialize the table entry */ |
@@ -435,7 +436,6 @@ acpi_tb_get_root_table_entry(u8 *table_entry, u32 table_entry_size) | |||
435 | * FUNCTION: acpi_tb_parse_root_table | 436 | * FUNCTION: acpi_tb_parse_root_table |
436 | * | 437 | * |
437 | * PARAMETERS: Rsdp - Pointer to the RSDP | 438 | * PARAMETERS: Rsdp - Pointer to the RSDP |
438 | * Flags - Flags | ||
439 | * | 439 | * |
440 | * RETURN: Status | 440 | * RETURN: Status |
441 | * | 441 | * |
@@ -449,7 +449,7 @@ acpi_tb_get_root_table_entry(u8 *table_entry, u32 table_entry_size) | |||
449 | ******************************************************************************/ | 449 | ******************************************************************************/ |
450 | 450 | ||
451 | acpi_status __init | 451 | acpi_status __init |
452 | acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags) | 452 | acpi_tb_parse_root_table(acpi_physical_address rsdp_address) |
453 | { | 453 | { |
454 | struct acpi_table_rsdp *rsdp; | 454 | struct acpi_table_rsdp *rsdp; |
455 | u32 table_entry_size; | 455 | u32 table_entry_size; |
@@ -600,14 +600,14 @@ acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags) | |||
600 | */ | 600 | */ |
601 | for (i = 2; i < acpi_gbl_root_table_list.count; i++) { | 601 | for (i = 2; i < acpi_gbl_root_table_list.count; i++) { |
602 | acpi_tb_install_table(acpi_gbl_root_table_list.tables[i]. | 602 | acpi_tb_install_table(acpi_gbl_root_table_list.tables[i]. |
603 | address, flags, NULL, i); | 603 | address, NULL, i); |
604 | 604 | ||
605 | /* Special case for FADT - get the DSDT and FACS */ | 605 | /* Special case for FADT - get the DSDT and FACS */ |
606 | 606 | ||
607 | if (ACPI_COMPARE_NAME | 607 | if (ACPI_COMPARE_NAME |
608 | (&acpi_gbl_root_table_list.tables[i].signature, | 608 | (&acpi_gbl_root_table_list.tables[i].signature, |
609 | ACPI_SIG_FADT)) { | 609 | ACPI_SIG_FADT)) { |
610 | acpi_tb_parse_fadt(i, flags); | 610 | acpi_tb_parse_fadt(i); |
611 | } | 611 | } |
612 | } | 612 | } |
613 | 613 | ||
diff --git a/drivers/acpi/acpica/tbxface.c b/drivers/acpi/acpica/tbxface.c index f3f95e386334..416d01d9a970 100644 --- a/drivers/acpi/acpica/tbxface.c +++ b/drivers/acpi/acpica/tbxface.c | |||
@@ -150,8 +150,7 @@ acpi_initialize_tables(struct acpi_table_desc * initial_table_array, | |||
150 | * Root Table Array. This array contains the information of the RSDT/XSDT | 150 | * Root Table Array. This array contains the information of the RSDT/XSDT |
151 | * in a common, more useable format. | 151 | * in a common, more useable format. |
152 | */ | 152 | */ |
153 | status = | 153 | status = acpi_tb_parse_root_table(rsdp_address); |
154 | acpi_tb_parse_root_table(rsdp_address, ACPI_TABLE_ORIGIN_MAPPED); | ||
155 | return_ACPI_STATUS(status); | 154 | return_ACPI_STATUS(status); |
156 | } | 155 | } |
157 | 156 | ||