Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2022 17:29:59 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: 33883cdce45f - main - acpi_hpet: Use devclass_find to find devclass in identify.
Message-ID:  <202204211729.23LHTx6w099531@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=33883cdce45fe176b976da29c944a3fa272fa4e1

commit 33883cdce45fe176b976da29c944a3fa272fa4e1
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_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. */



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