diff options
author | msmith <msmith@FreeBSD.org> | 2000-10-11 23:03:11 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2000-10-11 23:03:11 +0000 |
commit | 98885f55599dfa6c0c1cce3e86a9e16da42fcc7c (patch) | |
tree | 86e4f289d64c2227895404d6bcb9accbefae7495 /sys | |
parent | 2eb0a9817719ff9993e43a1013e09ea607865513 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/amd64/pci/pci_bus.c | 2 | ||||
-rw-r--r-- | sys/i386/pci/pci_bus.c | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/sys/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c index a3b07a6..1f7d6c0 100644 --- a/sys/i386/pci/pci_bus.c +++ b/sys/i386/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; |