acpi_apei: Use devclass_find to find devclass in identify.

Reviewed by:	mav
Differential Revision:	https://reviews.freebsd.org/D34987
This commit is contained in:
John Baldwin
2022-04-21 10:29:13 -07:00
parent 5a84b710a9
commit 3730d6aa8f
+1 -1
View File
@@ -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. */