git: c7d29adcb3ce - main - vga_pci: Use bus_generic_* directly instead of wrappers

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 19 Nov 2024 15:28:49 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=c7d29adcb3ce6544eb30c6b5489999d8f001cb71

commit c7d29adcb3ce6544eb30c6b5489999d8f001cb71
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2024-11-19 15:26:32 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
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),