diff options
author | Bob Moore <robert.moore@intel.com> | 2013-08-08 03:29:22 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-08-08 09:36:08 -0400 |
commit | 38f7c5a11e8ec0f770d8850ca8442528a959f9f3 (patch) | |
tree | 51ea4cdfb79467a1fb8b49dcfa0b6fd207d5791a | |
parent | 741d81280ad2b31fc3d76c49fa5c1fe09f3a6f68 (diff) |
ACPICA: Export acpi_tb_validate_rsdp().
This patch exports acpi_tb_validate_rsdp(), so that code duplication in
some ACPICA utilities can be reduced.
This patch also includes lint changes.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/acpica/actables.h | 2 | ||||
-rw-r--r-- | drivers/acpi/acpica/tbxfroot.c | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/drivers/acpi/acpica/actables.h b/drivers/acpi/acpica/actables.h index 917315ec21dd..c54f42c64fe2 100644 --- a/drivers/acpi/acpica/actables.h +++ b/drivers/acpi/acpica/actables.h | |||
@@ -49,6 +49,8 @@ acpi_status acpi_allocate_root_table(u32 initial_table_count); | |||
49 | /* | 49 | /* |
50 | * tbxfroot - Root pointer utilities | 50 | * tbxfroot - Root pointer utilities |
51 | */ | 51 | */ |
52 | acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp); | ||
53 | |||
52 | u8 *acpi_tb_scan_memory_for_rsdp(u8 *start_address, u32 length); | 54 | u8 *acpi_tb_scan_memory_for_rsdp(u8 *start_address, u32 length); |
53 | 55 | ||
54 | /* | 56 | /* |
diff --git a/drivers/acpi/acpica/tbxfroot.c b/drivers/acpi/acpica/tbxfroot.c index e76ed0f07826..948c95e80d44 100644 --- a/drivers/acpi/acpica/tbxfroot.c +++ b/drivers/acpi/acpica/tbxfroot.c | |||
@@ -48,9 +48,6 @@ | |||
48 | #define _COMPONENT ACPI_TABLES | 48 | #define _COMPONENT ACPI_TABLES |
49 | ACPI_MODULE_NAME("tbxfroot") | 49 | ACPI_MODULE_NAME("tbxfroot") |
50 | 50 | ||
51 | /* Local prototypes */ | ||
52 | static acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp); | ||
53 | |||
54 | /******************************************************************************* | 51 | /******************************************************************************* |
55 | * | 52 | * |
56 | * FUNCTION: acpi_tb_validate_rsdp | 53 | * FUNCTION: acpi_tb_validate_rsdp |
@@ -62,8 +59,7 @@ static acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp); | |||
62 | * DESCRIPTION: Validate the RSDP (ptr) | 59 | * DESCRIPTION: Validate the RSDP (ptr) |
63 | * | 60 | * |
64 | ******************************************************************************/ | 61 | ******************************************************************************/ |
65 | 62 | acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp) | |
66 | static acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp) | ||
67 | { | 63 | { |
68 | 64 | ||
69 | /* | 65 | /* |
@@ -72,7 +68,7 @@ static acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp) | |||
72 | * Note: Sometimes there exists more than one RSDP in memory; the valid | 68 | * Note: Sometimes there exists more than one RSDP in memory; the valid |
73 | * RSDP has a valid checksum, all others have an invalid checksum. | 69 | * RSDP has a valid checksum, all others have an invalid checksum. |
74 | */ | 70 | */ |
75 | if (ACPI_STRNCMP((char *)rsdp, ACPI_SIG_RSDP, | 71 | if (ACPI_STRNCMP((char *)rsdp->signature, ACPI_SIG_RSDP, |
76 | sizeof(ACPI_SIG_RSDP) - 1) != 0) { | 72 | sizeof(ACPI_SIG_RSDP) - 1) != 0) { |
77 | 73 | ||
78 | /* Nope, BAD Signature */ | 74 | /* Nope, BAD Signature */ |