From b169c85e208aa4f90cf5f7840792d4e3136f59d7 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sun, 23 May 2010 08:31:15 +0000 Subject: [PATCH] Oops, HPET ID optionally stored in _UID, not in _ADR. --- sys/dev/acpica/acpi_hpet.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/acpica/acpi_hpet.c b/sys/dev/acpica/acpi_hpet.c index 1288494adba..b3f666f41ce 100644 --- a/sys/dev/acpica/acpi_hpet.c +++ b/sys/dev/acpica/acpi_hpet.c @@ -107,7 +107,7 @@ acpi_hpet_find(ACPI_HANDLE handle, UINT32 level, void *context, { char **ids; uint32_t id = (uint32_t)(uintptr_t)context; - uint32_t adr = 0; + uint32_t uid = 0; for (ids = hpet_ids; *ids != NULL; ids++) { if (acpi_MatchHid(handle, *ids)) @@ -115,9 +115,9 @@ acpi_hpet_find(ACPI_HANDLE handle, UINT32 level, void *context, } if (*ids == NULL) return (AE_OK); - if (ACPI_FAILURE(acpi_GetInteger(handle, "_ADR", &adr))) - adr = 0; - if (id == adr) + if (ACPI_FAILURE(acpi_GetInteger(handle, "_UID", &uid))) + uid = 0; + if (id == uid) *((int *)status) = 1; return (AE_OK); }