From nobody Sun Dec 01 04:57:29 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 4Y1F5j3PsKz5gCsD; Sun, 01 Dec 2024 04:57:29 +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 4Y1F5j1cSZz49y9; Sun, 1 Dec 2024 04:57:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733029049; 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=hhYBKO5+zI5ZPWtExTfhXyRfeI3ajz0Br1zgxY3lqbc=; b=awlD+nsqY4YMFd8AcL2zJpcyiMwGaIjpyr1YURT649GBu+JbZRZY2f8EsT/p0lIXueIyqn O3DLZM1F+xCgtUWa14Y3Ki/047JJtO3oH27IbR2QWgotAzEc0Kkw2JRs1WLMh7RYe9+BfA uR5EEWYUhDTTkKjW976gML8+cW+ajKCcQ0Oi8/F84a7zthi1kAnOzIwxQvUxryqcCy4+ah J5UJeCqDqEFRCasUW2a7dchfcYwFTppqHYbkYSFXu29nwkHj5ATur7JhU22z0PkU1HMfjv xIkQq6YCYKLV19bS3qPVl81Tcewc1K6RzaLQTAFSiGjUq1DdlwHXDMIL2xGSLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733029049; 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=hhYBKO5+zI5ZPWtExTfhXyRfeI3ajz0Br1zgxY3lqbc=; b=Cr0g5PyXPSXapqjjXsTW9EWVWECAM/JZfVkT91BFJ+FhxU1EAgmETT/Cazn8Vu6ubpT8hA GWJJJSl/lq63TumEUzxs6ZS6IuUTM55zddjPQBo/1rpG2eb3/LFo7m97tZRoA+hS2xYomQ Ph/N7hSr3b6C0I3BJndnkl86f8/74ZgQf8eCPWPg6WGbpk/DNCoot4FNCsatILLadpTgrL mm3q9mEf/4IEn8DTjMBLJSN2fb9DvOdSG0GKegv+ws7SXaBAmqfimTkPJZ88gTXV0vJf9K f3cmDuglRu6U7O73n5s+q9U0IQucNJRBtVdio2CJgaLM9CH2IvLREL2NAnZZ1Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733029049; a=rsa-sha256; cv=none; b=YOorQEknp+htudcd6s3/Ljs7UqAo9k5WzxjOavg3t969a8yaDHmJOGDJiv5WtSUWqSRYs3 cwabiJOCi+3Q9QylUrCoIxTMP37YIutuVzMmM+YeAHGV3yn1V0hEciB1pXUHBOeUtjg8cp P2ndN+kb77lcuM5bs8lqUx2iuWtLd/YFJwKgh3CsxidgqOXtbmAzrPbPcFwdLYcBGm689f eqdwrsTTex4DqLZ2AWfwFkHhvSNOq5mTCeMIFXqy1H/hYGh6UxE4V+qJEga5xV8dlqitrY Atk1EHUG0vOLVtulyG7QNiK9CwvezsFZiwgc/6rA1g4u26ZVtjYyE7HA4EKWHg== 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 4Y1F5j1F54zfJ9; Sun, 1 Dec 2024 04:57:29 +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 4B14vTXN096050; Sun, 1 Dec 2024 04:57:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B14vTjD096047; Sun, 1 Dec 2024 04:57:29 GMT (envelope-from git) Date: Sun, 1 Dec 2024 04:57:29 GMT Message-Id: <202412010457.4B14vTjD096047@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 44eaee18f808 - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 44eaee18f8086fd75c79f5ae8ed21c4f556a8beb Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=44eaee18f8086fd75c79f5ae8ed21c4f556a8beb commit 44eaee18f8086fd75c79f5ae8ed21c4f556a8beb Author: John Baldwin AuthorDate: 2024-11-19 15:26:32 +0000 Commit: John Baldwin CommitDate: 2024-12-01 02:46:08 +0000 vga_pci: Use bus_generic_* directly instead of wrappers Differential Revision: https://reviews.freebsd.org/D47375 (cherry picked from commit c7d29adcb3ce6544eb30c6b5489999d8f001cb71) --- 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 57fec1780e3c..a205d28b2cab 100644 --- a/sys/dev/pci/vga_pci.c +++ b/sys/dev/pci/vga_pci.c @@ -381,13 +381,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) { @@ -399,13 +392,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 @@ -736,9 +722,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),