X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fvirtio%2Fvirtio_pci.c;h=eae7236310e450ce1647a25a480eccad9147dec4;hb=6e501a3f4a7259b1c04aa6cbdfe64376afc9f59c;hp=27e9fc9117cdfa69fee88e32e3636a844d803d5e;hpb=0f1bce41fed02e45f31c2409f29e69e1fedebcdc;p=karo-tx-linux.git diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c index 27e9fc9117cd..eae7236310e4 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c @@ -78,9 +78,6 @@ static struct device virtio_pci_root = { .bus_id = "virtio-pci", }; -/* Unique numbering for devices under the kvm root */ -static unsigned int dev_index; - /* Convert a generic virtio device to our structure */ static struct virtio_pci_device *to_vp_device(struct virtio_device *vdev) { @@ -325,10 +322,6 @@ static int __devinit virtio_pci_probe(struct pci_dev *pci_dev, if (vp_dev == NULL) return -ENOMEM; - snprintf(vp_dev->vdev.dev.bus_id, BUS_ID_SIZE, "virtio%d", dev_index); - vp_dev->vdev.index = dev_index; - dev_index++; - vp_dev->vdev.dev.parent = &virtio_pci_root; vp_dev->vdev.config = &virtio_pci_config_ops; vp_dev->pci_dev = pci_dev;