diff options
Diffstat (limited to 'drivers/acpi/acpica/tbxfroot.c')
-rw-r--r-- | drivers/acpi/acpica/tbxfroot.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/tbxfroot.c b/drivers/acpi/acpica/tbxfroot.c index 948c95e80d44..e4e1468877c3 100644 --- a/drivers/acpi/acpica/tbxfroot.c +++ b/drivers/acpi/acpica/tbxfroot.c | |||
@@ -68,8 +68,7 @@ acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp) | |||
68 | * 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 |
69 | * RSDP has a valid checksum, all others have an invalid checksum. | 69 | * RSDP has a valid checksum, all others have an invalid checksum. |
70 | */ | 70 | */ |
71 | if (ACPI_STRNCMP((char *)rsdp->signature, ACPI_SIG_RSDP, | 71 | if (!ACPI_VALIDATE_RSDP_SIG(rsdp->signature)) { |
72 | sizeof(ACPI_SIG_RSDP) - 1) != 0) { | ||
73 | 72 | ||
74 | /* Nope, BAD Signature */ | 73 | /* Nope, BAD Signature */ |
75 | 74 | ||
@@ -112,7 +111,7 @@ acpi_status acpi_tb_validate_rsdp(struct acpi_table_rsdp *rsdp) | |||
112 | * | 111 | * |
113 | ******************************************************************************/ | 112 | ******************************************************************************/ |
114 | 113 | ||
115 | acpi_status acpi_find_root_pointer(acpi_size *table_address) | 114 | acpi_status __init acpi_find_root_pointer(acpi_size *table_address) |
116 | { | 115 | { |
117 | u8 *table_ptr; | 116 | u8 *table_ptr; |
118 | u8 *mem_rover; | 117 | u8 *mem_rover; |