diff options
Diffstat (limited to 'src/drivers/bus')
| -rw-r--r-- | src/drivers/bus/pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/bus/pci.c b/src/drivers/bus/pci.c index 11a8e0a0a..56436b7d6 100644 --- a/src/drivers/bus/pci.c +++ b/src/drivers/bus/pci.c @@ -282,6 +282,10 @@ static int pcibus_probe ( struct root_device *rootdev ) { snprintf ( pci->dev.name, sizeof ( pci->dev.name ), "PCI%02x:%02x.%x", bus, PCI_SLOT ( devfn ), PCI_FUNC ( devfn ) ); + pci->dev.desc.bus_type = BUS_TYPE_PCI; + pci->dev.desc.pci.busdevfn = PCI_BUSDEVFN (bus, devfn); + pci->dev.desc.pci.vendor = pci->vendor; + pci->dev.desc.pci.device = pci->device; pci->dev.parent = &rootdev->dev; list_add ( &pci->dev.siblings, &rootdev->dev.children); INIT_LIST_HEAD ( &pci->dev.children ); |
