From nobody Thu Apr 21 17:29:59 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DF8BF1990581; Thu, 21 Apr 2022 17:30:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kkl0m3jjrz4WgQ; Thu, 21 Apr 2022 17:30:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TqyRwFflJn80Fix3yqgm6UQuPKdppRxtRaxVigZwcPs=; b=bFJt2+3tSwwlSyvXbWhWHpbC+3no8eRzh/ke2wHuQaNxqJpMqSGwnqHVFyEAifMQFohNRx qzNnoW7KXK6v5DfJJugSPzq011XfeWE7v1uYOlUeWc6DRCyJo1Xohjjz1Ju+HzIWAnc7Fb kuWaCu+332l+SVG//CVWei/U88agAv3J0H3Y7p4ODr1QSHl05a6TdincLDEvo5cpD2aPk3 Sv0LT+2K/VObYEXVCmvmhfNHd9WtPHRZcXoPfSroJejcoAESvdmLfs+VfdF6hkE+qJQKSU gZ+JVEAbGdBw92+v9hPaUnb00PjUkx2mIABlx7W65A0W4XyCDu3Hrtv93Woqtg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EC5CE5131; Thu, 21 Apr 2022 17:29:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23LHTxvk099533; Thu, 21 Apr 2022 17:29:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23LHTx6w099531; Thu, 21 Apr 2022 17:29:59 GMT (envelope-from git) Date: Thu, 21 Apr 2022 17:29:59 GMT Message-Id: <202204211729.23LHTx6w099531@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 33883cdce45f - main - acpi_hpet: Use devclass_find to find devclass in identify. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 33883cdce45fe176b976da29c944a3fa272fa4e1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TqyRwFflJn80Fix3yqgm6UQuPKdppRxtRaxVigZwcPs=; b=wMH7SWTSt6/5Z55CxBLmXxbz9C+VMCNOB0uXOEkKFNJTZKfr/L6+nODtBuSfqZWZgO0IKX OgPbwmaEHe0EV/WHK8GizbHfJ8RU3a3JyYRnrj8VFuTiH0Y+6MbeAev91x8ta917hSc2jj ELfp2KAgJ0WGPVhel+HxXa7EyVvRTvIUYjtvLA9/3c9odq/TUQ2rVCU6J+nSG4XGeX153Y tTfzBN4OpZ6l4lKqeiLgRQgcxVtHe/slMzfwL5O8x14HiV1Mz4ZPHzxlw6wZnxsJhSn1ou ApRcw7UTaaVhYlYW2KpWikL4e1A9IUdB89vq8TToWunzsY5IbjTdcSudKHqPSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650562200; a=rsa-sha256; cv=none; b=PofkjT2vm6koAz5uZ6+4NK1EUEUv4JnV4nB2X68icgnu8MK1URiVvltDlI6GBR8i/F3RQ6 Os49rTIacE1vNxExlom5Dc+ytIc6MKgjynKFYHoT+KxwRMjrQ/KFvDUPB8x/8yJzAaDVqF P8IIaSn0uHVJ1oaalLyj1DC0AUyq2JHtWx1qdOhJrDWs2MlqsedMFXh15XnQBFpyMmynXm mZxK22Yf7ZN8bplwXaNHyxwmDuJG81cQS+dUynZNOFqFtFYT5wh/uYEA/ba8WjlqX/pPwf rBgoDIeLEYt9gf1OCjVkcCSG/4JDuRe+hgD9uXuU31/2W4JCLigyRC14wBCNYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=33883cdce45fe176b976da29c944a3fa272fa4e1 commit 33883cdce45fe176b976da29c944a3fa272fa4e1 Author: John Baldwin AuthorDate: 2022-04-21 17:29:13 +0000 Commit: John Baldwin 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. */