提交 385c4d98 编写于 作者: L Lin Ming 提交者: Len Brown

ACPI: io_common.c: call acpi_get_table to avoid using ACPI_SIG_DSDT

ACPI_SIG_DSDT is acpica internal used only.
call acpi_get_table to avoid using ACPI_SIG_DSDT.
Signed-off-by: NLin Ming <ming.m.lin@intel.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 a8ce4471
...@@ -473,7 +473,7 @@ sn_io_early_init(void) ...@@ -473,7 +473,7 @@ sn_io_early_init(void)
{ {
struct acpi_table_header *header = NULL; struct acpi_table_header *header = NULL;
acpi_get_table_by_index(ACPI_TABLE_INDEX_DSDT, &header); acpi_get_table(ACPI_SIG_DSDT, 1, &header);
BUG_ON(header == NULL); BUG_ON(header == NULL);
sn_acpi_rev = header->oem_revision; sn_acpi_rev = header->oem_revision;
} }
...@@ -505,7 +505,7 @@ sn_io_early_init(void) ...@@ -505,7 +505,7 @@ sn_io_early_init(void)
{ {
struct acpi_table_header *header; struct acpi_table_header *header;
(void)acpi_get_table_by_index(ACPI_TABLE_INDEX_DSDT, &header); (void)acpi_get_table(ACPI_SIG_DSDT, 1, &header);
printk(KERN_INFO "ACPI DSDT OEM Rev 0x%x\n", printk(KERN_INFO "ACPI DSDT OEM Rev 0x%x\n",
header->oem_revision); header->oem_revision);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册