aboutsummaryrefslogtreecommitdiff
path: root/sys/x86/pci/pci_bus.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2024-11-01 14:10:30 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2024-11-30 21:46:42 +0000
commit1c3c574f8483c597ab62f7acacf01271b2f86c3a (patch)
tree7c7cdc13f29824da796b5dd52026c1316063e427 /sys/x86/pci/pci_bus.c
parenta6586a518bc2a06de53babc9d8f8b964fe4647f5 (diff)
x86: Remove invalid DEVMETHOD methods for leaf devices
None of these drivers are for bus devices, so bus_generic_* is not appropriate. Most of these were nops except that detach would actually "succeed" (but not do any cleanup). Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47374 (cherry picked from commit df615735960370255d3acc4ac2a6f4fd297b7461)
Diffstat (limited to 'sys/x86/pci/pci_bus.c')
-rw-r--r--sys/x86/pci/pci_bus.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/x86/pci/pci_bus.c b/sys/x86/pci/pci_bus.c
index 40136be72f6d..ac8a00139eff 100644
--- a/sys/x86/pci/pci_bus.c
+++ b/sys/x86/pci/pci_bus.c
@@ -707,10 +707,6 @@ static device_method_t pcibus_pnp_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, pcibus_pnp_probe),
DEVMETHOD(device_attach, pcibus_pnp_attach),
- DEVMETHOD(device_detach, bus_generic_detach),
- DEVMETHOD(device_shutdown, bus_generic_shutdown),
- DEVMETHOD(device_suspend, bus_generic_suspend),
- DEVMETHOD(device_resume, bus_generic_resume),
{ 0, 0 }
};