aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-21 17:29:13 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-21 17:29:13 +0000
commit3730d6aa8f5c5650b5acd49d645a255d5ced03a2 (patch)
treef9fd945361dceba5f892afcc24f110b9b394a8de
parent5a84b710a9b29e317e11dd795ed3983b06ac32b0 (diff)
acpi_apei: Use devclass_find to find devclass in identify.
Reviewed by: mav Differential Revision: https://reviews.freebsd.org/D34987
-rw-r--r--sys/dev/acpica/acpi_apei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_apei.c b/sys/dev/acpica/acpi_apei.c
index 35bab30a68f1..723928f2fac9 100644
--- a/sys/dev/acpica/acpi_apei.c
+++ b/sys/dev/acpica/acpi_apei.c
@@ -599,7 +599,7 @@ apei_identify(driver_t *driver, device_t parent)
AcpiPutTable(hest);
/* Only one APEI device can exist. */
- if (devclass_get_device(apei_devclass, 0))
+ if (devclass_get_device(devclass_find("apei"), 0))
return;
/* Search for ACPI error device to be used. */