aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/pci
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-09-23 18:14:31 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-09-23 18:14:31 +0000
commitb8581e0d567d1cdf5ddb03df7e535ffd181347f7 (patch)
tree71b5067f3644c280fab1fa554ad8bea2bc2f37a0 /sys/amd64/pci
parent8ff25e976304bb32bf986f9b935fc65849641c3a (diff)
downloadsrc-b8581e0d567d1cdf5ddb03df7e535ffd181347f7.tar.gz
src-b8581e0d567d1cdf5ddb03df7e535ffd181347f7.zip
Now that we only probe host-PCI bridges once, we no longer have to check to
see if we have been probed before by checking for a pciX bus device.
Notes
Notes: svn path=/head/; revision=103869
Diffstat (limited to 'sys/amd64/pci')
-rw-r--r--sys/amd64/pci/pci_bus.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/amd64/pci/pci_bus.c b/sys/amd64/pci/pci_bus.c
index 56e8eb365add..2e589ddcfb9c 100644
--- a/sys/amd64/pci/pci_bus.c
+++ b/sys/amd64/pci/pci_bus.c
@@ -424,19 +424,9 @@ nexus_pcib_identify(driver_t *driver, device_t parent)
static int
nexus_pcib_probe(device_t dev)
{
- devclass_t pci_devclass;
if (pci_cfgregopen() == 0)
return ENXIO;
- /*
- * Check to see if we haven't already had a PCI bus added
- * via some other means. If we have, bail since otherwise
- * we're going to end up duplicating it.
- */
- if ((pci_devclass = devclass_find("pci")) &&
- devclass_get_device(pci_devclass, device_get_unit(dev)))
- return ENXIO;
-
return 0;
}