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:
parent
2eb0a98177
commit
98885f5559
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user