|
@@ -713,8 +713,9 @@ static int pci_setup_device(struct pci_dev * dev)
|
|
|
{
|
|
|
u32 class;
|
|
|
|
|
|
- sprintf(pci_name(dev), "%04x:%02x:%02x.%d", pci_domain_nr(dev->bus),
|
|
|
- dev->bus->number, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn));
|
|
|
+ snprintf(dev->dev.bus_id, BUS_ID_SIZE,
|
|
|
+ "%04x:%02x:%02x.%d", pci_domain_nr(dev->bus),
|
|
|
+ dev->bus->number, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn));
|
|
|
|
|
|
pci_read_config_dword(dev, PCI_CLASS_REVISION, &class);
|
|
|
dev->revision = class & 0xff;
|