Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2022 17:29:56 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3730d6aa8f5c - main - acpi_apei: Use devclass_find to find devclass in identify.
Message-ID:  <202204211729.23LHTu7M099457@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204211729.23LHTu7M099457>