From 98885f55599dfa6c0c1cce3e86a9e16da42fcc7c Mon Sep 17 00:00:00 2001 From: msmith Date: Wed, 11 Oct 2000 23:03:11 +0000 Subject: 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 --- sys/amd64/pci/pci_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/amd64/pci') 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; -- cgit v1.1