From nobody Tue Nov 19 15:28:49 2024 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 4Xt7gj3DGvz5f7hW; Tue, 19 Nov 2024 15:28:49 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xt7gj1zZVz4CZw; Tue, 19 Nov 2024 15:28:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732030129; 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=dqfR0fYzoa83L2Ew864nz7deJL/k/jb0Z6P/MvbHz5c=; b=EsVCBVqjKFDqIvGpyrO/KBZxuLlD+lE6W9WllxykNaliRHvM7baSbjX8IjxKQzK+vh0CPg hS2l2Y4P9WtwDcShHb5vHf+YUZ5mI2eRgm7dUZYZ6isIxTTL7NOCmlefJ07KU03JffLQV6 2mtQ4Glo+i/bfPTKxaqpmc1vzv76Z2icQnckK6L4iZ3MOAfRY7FcWR9o2LpxlY9gW80Av9 XlvxysHPAjzrvSwm2hRuuCeTM554QNY2tKJNo0Co5xURHH+MMT9lCfmFNvFkwZ1Nblpuvn Q+8MUVUHnw09vRQ+mcWRpzO+zHnzrgERk2+FJOowi1KrBnOf7952kYP/dBwBNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732030129; 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=dqfR0fYzoa83L2Ew864nz7deJL/k/jb0Z6P/MvbHz5c=; b=MP5i7Mm9DrHNs9b+uxC8amCL5TczsfP20j5L5+ySzVdfbv2K3FmYVY2SaCsADcTI9/ErFk c3h6Eyd9VtTnd7AHWfsjQiFB2XqTTY+5XnN+taUiEf72plN2HNRfmZzSgbrv2hbMTPk59p HF1q79C40tGondM/hY837RkKQGyKJUI9zqUdU0DcdbUtCRpQVkhzGQs2rjuTqhBYAKssPP D63imbnij6dqrycr8WV9fhKJlEUL2WEOt2rWx4z8dPUH3+4rnQzZbF/B5UDPuWnQXbbQhx THvdqqJ1ENer4KKBsTLtABmPdRIHYYXY2lJdxEOUOJSzBPqonJoQOoreLj50fA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732030129; a=rsa-sha256; cv=none; b=cdvstyzxY2S2iuDcfPxyQ/9wNKu7SVP9gv2bHXhnT592rcDFcfVxiaDM4Fz86IefaXdRRp S8q2OZ4lpH1j7EpjWYjrvvIO4LmvBdmF+4EqjquPufg9vMyWmUDqL90GbKotodl5gOiCsw ZI2aVZYhFBgGMpOtgxXA4qKSGjF7wqAzRakhKbQz5j/3f17mkbiRkws2YGU4FMNB9BMGoN oipBXygqAaQmLEJzU6NOgU9Y8uIOAZ1BN/+liA4VmqvHlDh7+koZ5+xwXhFgNzD+ZrXPzN TPycCLHw9y8FzjWHtORDQOcYvzY4+KkikjPicnaqD8/jQpmC/S2H3GzQTQ0abQ== 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 4Xt7gj1bQRzG6S; Tue, 19 Nov 2024 15:28:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AJFSniF041529; Tue, 19 Nov 2024 15:28:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AJFSn5F041526; Tue, 19 Nov 2024 15:28:49 GMT (envelope-from git) Date: Tue, 19 Nov 2024 15:28:49 GMT Message-Id: <202411191528.4AJFSn5F041526@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: c7d29adcb3ce - main - vga_pci: Use bus_generic_* directly instead of wrappers 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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: c7d29adcb3ce6544eb30c6b5489999d8f001cb71 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c7d29adcb3ce6544eb30c6b5489999d8f001cb71 commit c7d29adcb3ce6544eb30c6b5489999d8f001cb71 Author: John Baldwin AuthorDate: 2024-11-19 15:26:32 +0000 Commit: John Baldwin CommitDate: 2024-11-19 15:26:32 +0000 vga_pci: Use bus_generic_* directly instead of wrappers Differential Revision: https://reviews.freebsd.org/D47375 --- sys/dev/pci/vga_pci.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/sys/dev/pci/vga_pci.c b/sys/dev/pci/vga_pci.c index 993cdc916d21..5a4749933574 100644 --- a/sys/dev/pci/vga_pci.c +++ b/sys/dev/pci/vga_pci.c @@ -378,13 +378,6 @@ vga_pci_attach(device_t dev) return (0); } -static int -vga_pci_suspend(device_t dev) -{ - - return (bus_generic_suspend(dev)); -} - static int vga_pci_detach(device_t dev) { @@ -396,13 +389,6 @@ vga_pci_detach(device_t dev) return (error); } -static int -vga_pci_resume(device_t dev) -{ - - return (bus_generic_resume(dev)); -} - /* Bus interface. */ static int @@ -732,9 +718,9 @@ static device_method_t vga_pci_methods[] = { DEVMETHOD(device_probe, vga_pci_probe), DEVMETHOD(device_attach, vga_pci_attach), DEVMETHOD(device_shutdown, bus_generic_shutdown), - DEVMETHOD(device_suspend, vga_pci_suspend), + DEVMETHOD(device_suspend, bus_generic_suspend), DEVMETHOD(device_detach, vga_pci_detach), - DEVMETHOD(device_resume, vga_pci_resume), + DEVMETHOD(device_resume, bus_generic_resume), /* Bus interface */ DEVMETHOD(bus_read_ivar, vga_pci_read_ivar),