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
This commit is contained in:
msmith 2000-10-11 23:03:11 +00:00
parent 2eb0a98177
commit 98885f5559
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;