git: 3730d6aa8f5c - main - acpi_apei: Use devclass_find to find devclass in identify.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 21 Apr 2022 17:29:56 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=3730d6aa8f5c5650b5acd49d645a255d5ced03a2

commit 3730d6aa8f5c5650b5acd49d645a255d5ced03a2
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-21 17:29:13 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-21 17:29:13 +0000

    acpi_apei: Use devclass_find to find devclass in identify.
    
    Reviewed by:    mav
    Differential Revision:  https://reviews.freebsd.org/D34987
---
 sys/dev/acpica/acpi_apei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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. */