summaryrefslogtreecommitdiffstats
path: root/sys/amd64/pci
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2000-10-11 23:03:11 +0000
committermsmith <msmith@FreeBSD.org>2000-10-11 23:03:11 +0000
commit98885f55599dfa6c0c1cce3e86a9e16da42fcc7c (patch)
tree86e4f289d64c2227895404d6bcb9accbefae7495 /sys/amd64/pci
parent2eb0a9817719ff9993e43a1013e09ea607865513 (diff)
downloadFreeBSD-src-98885f55599dfa6c0c1cce3e86a9e16da42fcc7c.zip
FreeBSD-src-98885f55599dfa6c0c1cce3e86a9e16da42fcc7c.tar.gz
When testing for PCI bus overlap with another enumerator, make sure we
check for the right bus number. This is still not quite right, but fixes things for multi-bus machines again. Submitted by: tegge
Diffstat (limited to 'sys/amd64/pci')
-rw-r--r--sys/amd64/pci/pci_bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/pci/pci_bus.c b/sys/amd64/pci/pci_bus.c
index a3b07a6..1f7d6c0 100644
--- a/sys/amd64/pci/pci_bus.c
+++ b/sys/amd64/pci/pci_bus.c
@@ -370,7 +370,7 @@ nexus_pcib_probe(device_t dev)
* we're going to end up duplicating it.
*/
if ((pci_devclass = devclass_find("pci")) &&
- devclass_get_device(pci_devclass, 0))
+ devclass_get_device(pci_devclass, device_get_unit(dev)))
return ENXIO;
return 0;
OpenPOWER on IntegriCloud