summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_pci.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-09-06 16:09:07 +0000
committerjhb <jhb@FreeBSD.org>2002-09-06 16:09:07 +0000
commit09635017d5f9db0339a0ff3390a40b126bf10829 (patch)
tree814be20076a2e5671110f1fa6404eb1fffb4f386 /sys/dev/pci/pci_pci.c
parent004940f13ef54fa25fc39d097e8242ac28570d4c (diff)
downloadFreeBSD-src-09635017d5f9db0339a0ff3390a40b126bf10829.zip
FreeBSD-src-09635017d5f9db0339a0ff3390a40b126bf10829.tar.gz
Prefer the physical bus number of the PCI bus as the unit of the pciX
device created.
Diffstat (limited to 'sys/dev/pci/pci_pci.c')
-rw-r--r--sys/dev/pci/pci_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index a7ccf6a..d195c28 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -203,7 +203,7 @@ pcib_attach(device_t dev)
pcib_attach_common(dev);
sc = device_get_softc(dev);
if (sc->secbus != 0) {
- child = device_add_child(dev, "pci", -1);
+ child = device_add_child(dev, "pci", sc->secbus);
if (child != NULL)
return(bus_generic_attach(dev));
}
OpenPOWER on IntegriCloud