git: f2e50ce0a37a - main - ignore_pci: Add a proper stub attach routine
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 31 Oct 2024 19:52:57 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=f2e50ce0a37a40363b7ec6a165aa0b0a2e81ffc4
commit f2e50ce0a37a40363b7ec6a165aa0b0a2e81ffc4
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2024-10-31 19:49:27 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-10-31 19:49:27 +0000
ignore_pci: Add a proper stub attach routine
This isn't a bus driver, so an empty attach routine is more appropriate.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D47220
---
sys/dev/pci/ignore_pci.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/sys/dev/pci/ignore_pci.c b/sys/dev/pci/ignore_pci.c
index 22964e55b81d..8a12e43bcae3 100644
--- a/sys/dev/pci/ignore_pci.c
+++ b/sys/dev/pci/ignore_pci.c
@@ -41,11 +41,12 @@
#include <dev/pci/pcivar.h>
static int ignore_pci_probe(device_t dev);
+static int ignore_pci_attach(device_t dev);
static device_method_t ignore_pci_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, ignore_pci_probe),
- DEVMETHOD(device_attach, bus_generic_attach),
+ DEVMETHOD(device_attach, ignore_pci_attach),
{ 0, 0 }
};
@@ -68,3 +69,9 @@ ignore_pci_probe(device_t dev)
}
return(ENXIO);
}
+
+static int
+ignore_pci_attach(device_t dev)
+{
+ return (0);
+}