The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=33883cdce45fe176b976da29c944a3fa272fa4e1
commit 33883cdce45fe176b976da29c944a3fa272fa4e1 Author: John Baldwin <[email protected]> AuthorDate: 2022-04-21 17:29:13 +0000 Commit: John Baldwin <[email protected]> CommitDate: 2022-04-21 17:29:13 +0000 acpi_hpet: Use devclass_find to find devclass in identify. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34990 --- sys/dev/acpica/acpi_hpet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi_hpet.c b/sys/dev/acpica/acpi_hpet.c index e35e3808a980..c940ee5951ab 100644 --- a/sys/dev/acpica/acpi_hpet.c +++ b/sys/dev/acpica/acpi_hpet.c @@ -421,7 +421,7 @@ hpet_identify(driver_t *driver, device_t parent) int i; /* Only one HPET device can be added. */ - if (devclass_get_device(hpet_devclass, 0)) + if (devclass_get_device(devclass_find("hpet"), 0)) return; for (i = 1; ; i++) { /* Search for HPET table. */
