From nobody Thu Apr 21 17:29:58 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 7CA741990248; Thu, 21 Apr 2022 17:29:59 +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 4Kkl0l0C3bz4WPq; Thu, 21 Apr 2022 17:29:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562199; 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=pioRHYCYhvJCFyRqJNwwj94X7DVN7kOvotUyNo8dv0w=; b=EUxRBYVGLLZLRJ7Z4Ms+MFMsJXhqoNfkOBWOQhrEt/qiXJh3SlCftaYEpSKQ8Z4izu3bmX u8fHQ84nFrrh87U02bYzrijofOCzPgvCXaqOQe/WbWfx1kIsjMhUTCbPeRVteckPgVlpqy PEJKQetSl3PvMLUhRNGx0vW5rBqeYzeJyWzNm6viMsFRQX5jRMwBGDQufSgeicFmkeaYWB z99E+oNq5BZf3WxnFYNLPlf/UNdHdf6Tl1B3pTeoExosdvct2lLAb6AKeYEMbO+oNMiVvw vDLatql4Gs1kddwRgmmtq4L/MJI2ySuW2umZ2O94xSWciFLSjyZCF72yl7Lvpg== 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 D24245130; Thu, 21 Apr 2022 17:29:58 +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 23LHTw87099506; Thu, 21 Apr 2022 17:29:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23LHTwTE099505; Thu, 21 Apr 2022 17:29:58 GMT (envelope-from git) Date: Thu, 21 Apr 2022 17:29:58 GMT Message-Id: <202204211729.23LHTwTE099505@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: 97c076d23715 - main - acpi_ec: Use device_get_devclass to find devclass in probe. 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: 97c076d23715561576fbb316eaaf677f0c9812f7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562199; 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=pioRHYCYhvJCFyRqJNwwj94X7DVN7kOvotUyNo8dv0w=; b=ke0EWqFca4BYOMdK3lkLMNIozVABzMEbMSLF0WGqjNDtBzgNasnq9zif/+StGBHnX9Ow2i McHaxQFSF6kNuX7mapkRH/CFq1RMnzVo+KeKVNadhajwRQmsMbWwDnYgPkJM4PnSR3Tunf vqLF7B7l+4Ivq+UdefmwfFfzrqY1ewebMCoWKLdu0TE2nKaXKY0YL4PfFFaUyi3bCniNp9 xvirEQbrcdCJ1ln+oGSSBOCaf8S94LUzp7xkHlV6ajxwXx10Nj10WH2M9qH1FjmF9flDkK swxH3fmfCbvK7ilE2MVVMWxRaMdgfB2ycAUxEr488VFUnEcBrtIqBmtLVGJWAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650562199; a=rsa-sha256; cv=none; b=P5j5fRKJY1pIPI9uhs33HTnskUiYCAddk3qgz36GZ35bYM+J41/n2+M86jhRW/XZ3Gfcxf O+BKiWTRL24jkUx91zGlSDmDs39AoIZXVKhuRlLHVj+hfLSf6If4TccdmSsQbgyR4tup7G xOKApxAmyG5kjB3FZNThsR0sCX+7YehbfOrFblaAjDGYhzdf/TWvoQtXWDRhB4ng7t8aCs /tYXb+2uSz3dfg6ilPs0BTACciEOBnjGLQQZype1EPPe37RiVCOXh65s1zYTk+++CnlqmP EFZQBrcN5ysKIIU5CnFbYbbPSfPfqUODL7vE66psH1eW/SdZcptkdVI0wF066Q== 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=97c076d23715561576fbb316eaaf677f0c9812f7 commit 97c076d23715561576fbb316eaaf677f0c9812f7 Author: John Baldwin AuthorDate: 2022-04-21 17:29:13 +0000 Commit: John Baldwin CommitDate: 2022-04-21 17:29:13 +0000 acpi_ec: Use device_get_devclass to find devclass in probe. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34989 --- sys/dev/acpica/acpi_ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c index 2954791393a5..af6b5338c167 100644 --- a/sys/dev/acpica/acpi_ec.c +++ b/sys/dev/acpica/acpi_ec.c @@ -395,7 +395,7 @@ acpi_ec_probe(device_t dev) * checks DF_ENABLED at the start and so disabling it here is too late to * prevent device_attach() from being called. */ - peer = devclass_get_device(acpi_ec_devclass, params->uid); + peer = devclass_get_device(device_get_devclass(dev), params->uid); if (peer != NULL && device_is_alive(peer)) { device_disable(dev); goto out;