From nobody Thu Apr 21 17:29:55 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 9E4801990198; Thu, 21 Apr 2022 17:29:55 +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 4Kkl0g405xz4WPb; Thu, 21 Apr 2022 17:29:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562195; 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=INvN7yktROz8HU4eiD1HvTJX1mJYi7CD0kvfJGZrXB4=; b=yKjiljImGYCU72yrbPPav56ncWatCW2r1v4UJeMN+eBIZ4b61uDS06zjGYqYKKsFbYzcOD eFdIOKgLNJmdJ1aXtksBEt/Mm3n2sbuEOEAcXDS1isHp0W6vR7tWJfet2TiOos4u8d/jMD y1bp8NECOntE8OGbvES7gs9GdubzQzSdwDFAiN5guSTjd+x71deu4SHVY8QVrF9tlUk5K5 LlljGxm/n/eZLE45HZGEW4FuitEdB1MH/3ITiXq5+332JhEgTOEVHSTuujQdPYhFhPh2ih eweVW+GtbLAQL7PG0pCkG4T5+z8rsfLptjxbybUdkSajh5Yyj1HX9rGuwRmVWQ== 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 6A3174ECD; Thu, 21 Apr 2022 17:29:55 +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 23LHTtYD099434; Thu, 21 Apr 2022 17:29:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23LHTt3Y099433; Thu, 21 Apr 2022 17:29:55 GMT (envelope-from git) Date: Thu, 21 Apr 2022 17:29:55 GMT Message-Id: <202204211729.23LHTt3Y099433@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: 5a84b710a9b2 - main - acpi_acad: Use devclass_find to find the acpi_acad devclass. 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: 5a84b710a9b29e317e11dd795ed3983b06ac32b0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562195; 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=INvN7yktROz8HU4eiD1HvTJX1mJYi7CD0kvfJGZrXB4=; b=mBWVJPZnGHvVe6HcKpydfw7a4lqb2LUl3xyq8Ajp00OUKsbiiEU9W00OIXEKqJw+yLySi6 44nGoy2DeAE6YVOrjn5jFY0zMeo+lh4AxiiO60iFTrtUaV5stmqRPzvLd/gAYfcXxxh5Vq D7jLVL4jfdTyHBHZU8N340mgO2VlyK6z22ODEBN8SfP88rrJJpBx55O1zqhcV1Ceja+ANp /+vW3VmKepXxa+OcKCIgZhD6FIF+RAn/uFoQa3erGp85jT5z6DsiPbiWVWiNbbvJVtZttu t9J96nmZePx1WV+V0kwHPRpc2+S6H4KfmvX/HhCE3qdtLx+NpsJbM89Mnn1ewQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650562195; a=rsa-sha256; cv=none; b=CYr12UWo6gAp9EKZwGHNBYDNuxrUbqjR5x3t4jZEQ4gzIIz3oXZ6751t9ned3uy1aTsUhH YUNOoAXmlVVKDZpp28lVHTgTZb4OiezuZ0FylrBM4dHX/pT0AvbGBHbZJvw16d32uNI2UC pYLfSeMf7gkh71FM1MsWeH3P6tKne/CQGwVJKBpdUW0eFTiMe17QBfMWNbSVtJBOE0Dlc8 IyfE3Xgav5X6AQUIWoXnu6A1pqjXRMlkOteHyxdwTGAXUFvUIE7bTFbSVpAOYoM+KY/xaz eqKc8ijLjCAc42PMdx3cpYVROwYiB0SW4wfls0LPqgrL2mN4wo6Ne8sNu16qyg== 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=5a84b710a9b29e317e11dd795ed3983b06ac32b0 commit 5a84b710a9b29e317e11dd795ed3983b06ac32b0 Author: John Baldwin AuthorDate: 2022-04-21 17:29:13 +0000 Commit: John Baldwin CommitDate: 2022-04-21 17:29:13 +0000 acpi_acad: Use devclass_find to find the acpi_acad devclass. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34986 --- sys/dev/acpica/acpi_acad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c index ac7ff1315734..75e0d7803bad 100644 --- a/sys/dev/acpica/acpi_acad.c +++ b/sys/dev/acpica/acpi_acad.c @@ -260,7 +260,7 @@ static void acpi_acad_ac_only(void __unused *arg) { - if (devclass_get_count(acpi_acad_devclass) == 0) + if (devclass_get_count(devclass_find("acpi_acad")) == 0) acpi_UserNotify("ACAD", ACPI_ROOT_OBJECT, 1); } @@ -273,7 +273,7 @@ acpi_acad_get_acline(int *status) struct acpi_acad_softc *sc; device_t dev; - dev = devclass_get_device(acpi_acad_devclass, 0); + dev = devclass_get_device(devclass_find("acpi_acad"), 0); if (dev == NULL) return (ENXIO); sc = device_get_softc(dev);