From nobody Thu Apr 21 17:30:18 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 42CEA1991856; Thu, 21 Apr 2022 17:30:19 +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 4Kkl164n34z4Wc2; Thu, 21 Apr 2022 17:30:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562219; 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=7fO3vmDGV1usKrkTmi0KiLfIZX6fIbI3QMYR7B2H2Zg=; b=iUJwogZDavPWPlqtNx5fzZBD0x3RcdkJx0csSsP0S7nJKCzDHFeDsHCJZsqTmRi3VvJlEy xSeblY6lbLgqG2SxfoKowmu1yXej4fQJPTJPgN8gyDtMEpj3JIqZ1XQiFwpeAYxexGapBY jsN1B3rhErjrfp8ki8vPtI2fY5aej8FCZeiJTI4+aYJIsIUePFtD9cJB7sfWMis+Actv0R itQQh0SqqwRKMXqyP7ZNj2DXtOxk7xWeKP2uOQbWFXlzld9QUxv7S1Ei9zStATDqk6NAtd x/etuKOtf3LZOuAvMFvqU7pqzSzgmCuC7bszg4gEaZ/Fzq0mvIIjlV1T+NKGWg== 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 6A8335197; Thu, 21 Apr 2022 17:30:18 +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 23LHUIVd006692; Thu, 21 Apr 2022 17:30:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23LHUINo006689; Thu, 21 Apr 2022 17:30:18 GMT (envelope-from git) Date: Thu, 21 Apr 2022 17:30:18 GMT Message-Id: <202204211730.23LHUINo006689@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: c1d90b2d0222 - main - vgapm: Use devclass_find to lookup the vga devclass in suspend and resume. 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: c1d90b2d0222c648f2f88d5c7c878aef816c6d32 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562219; 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=7fO3vmDGV1usKrkTmi0KiLfIZX6fIbI3QMYR7B2H2Zg=; b=ia2mbrk5Xb8qn+krtdkdsW+5AaoD2PzC2bc1ecDwyiLTQyMhSJFe5erTF9iBbQSHy/ScKA K1W4neEt5OY4h32Mrp/tiM6WLlnIXJzjcf0YkZrg4qujXehLvwefJKo6LfLYBLFz1yZbdL zHC1W9eGNI4D33PXZNiex9rBF3AW5LvW8iT2z6S8TAfhTJCD8m5DnneVfLoFRB0M72fx94 TdTxQHC2+Hawj+BQ5njzQWs3GhtBxnwzwe2L+dhnZl7t4PcpeO5NROgchJSxxvR2eo9WQY 9ZvS9ATMNanThk57WpFejYhEqumtsewVR6q7ZEJeDOdybLfE/T24XTQsA/E1xQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650562219; a=rsa-sha256; cv=none; b=h3pRFhCJ8kn507VYGGhPgN0kP0VQJjiue3uC3qUaacZL8qRM36muzw/Zcva/RGMSp0R6UD 9euyMF6Et45WNdj2I+6wulb8SsGvnzJ/+Pyo3FrENmJLOiXRz6IFSeK31PEg+qh6S+UW0Y MsXr8howRbXl5wP4j5sK38E//W/j8NwS5HOQNia/GtYNjrjvgFf+0cxIXCQcolDi5BXAJX 7TZ9q1cvQPZ8xu8kFir1brInmaoEl5YW79xoLaW9tueJhA8RCe3D8BNgnN6zqR5emkgw6Z X6dQzCEaP1x/XsxaXzHXvB2l5CCB0ZbDo4eHrIyjyfc0PckIhjX2MlkNZKtG+A== 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=c1d90b2d0222c648f2f88d5c7c878aef816c6d32 commit c1d90b2d0222c648f2f88d5c7c878aef816c6d32 Author: John Baldwin AuthorDate: 2022-04-21 17:29:15 +0000 Commit: John Baldwin CommitDate: 2022-04-21 17:29:15 +0000 vgapm: Use devclass_find to lookup the vga devclass in suspend and resume. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D35009 --- sys/isa/vga_isa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/isa/vga_isa.c b/sys/isa/vga_isa.c index b5660a1f70d3..ac628922148d 100644 --- a/sys/isa/vga_isa.c +++ b/sys/isa/vga_isa.c @@ -280,7 +280,7 @@ vgapm_suspend(device_t dev) error = bus_generic_suspend(dev); if (error != 0) return (error); - vga_dev = devclass_get_device(isavga_devclass, 0); + vga_dev = devclass_get_device(devclass_find(VGA_DRIVER_NAME), 0); if (vga_dev == NULL) return (0); vga_suspend(vga_dev); @@ -293,7 +293,7 @@ vgapm_resume(device_t dev) { device_t vga_dev; - vga_dev = devclass_get_device(isavga_devclass, 0); + vga_dev = devclass_get_device(devclass_find(VGA_DRIVER_NAME), 0); if (vga_dev != NULL) vga_resume(vga_dev);