diff options
| author | Nate Lawson <njl@FreeBSD.org> | 2004-07-02 19:17:27 +0000 |
|---|---|---|
| committer | Nate Lawson <njl@FreeBSD.org> | 2004-07-02 19:17:27 +0000 |
| commit | 99eb9c8b3b7d54efcb1532e28ce111e1b1506f84 (patch) | |
| tree | aa9aa3cf6849a847fad85796aefdbd29293623ec /sys/dev | |
| parent | bf0acc273a119b831959adba75a1c1de8ade7c51 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/acpica/acpi_ec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c index 36ddd098e8f82..12159ed85f0fb 100644 --- a/sys/dev/acpica/acpi_ec.c +++ b/sys/dev/acpica/acpi_ec.c @@ -367,6 +367,7 @@ void acpi_ec_ecdt_probe(device_t parent) { ACPI_TABLE_ECDT *ecdt; + ACPI_TABLE_HEADER *hdr; ACPI_STATUS status; device_t child; ACPI_HANDLE h; @@ -375,8 +376,8 @@ acpi_ec_ecdt_probe(device_t parent) ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); /* Find and validate the ECDT. */ - status = AcpiGetFirmwareTable("ECDT", 1, ACPI_LOGICAL_ADDRESSING, - (ACPI_TABLE_HEADER **)&ecdt); + status = AcpiGetFirmwareTable("ECDT", 1, ACPI_LOGICAL_ADDRESSING, &hdr); + ecdt = (ACPI_TABLE_ECDT *)hdr; if (ACPI_FAILURE(status) || ecdt->control.RegisterBitWidth != 8 || ecdt->data.RegisterBitWidth != 8) { |
