From fdc97499bf83ef958db8a50985fdd321835dccf3 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 10 Jan 2007 15:27:48 +0000 Subject: Add device description fields to struct device. --- src/drivers/bus/pci.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/drivers') 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 ); -- cgit v1.2.3-55-g7522