virtio: virtio_pci should not set bus_id.
authorRusty Russell <[email protected]>
Fri, 30 May 2008 20:09:42 +0000 (15:09 -0500)
committerRusty Russell <[email protected]>
Fri, 30 May 2008 05:09:42 +0000 (15:09 +1000)
The common virtio code sets the bus_id, overriding anything virtio_pci
sets anyway.

Signed-off-by: Rusty Russell <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Carsten Otte <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Chris Lalancette <[email protected]>
Cc: Anthony Liguori <[email protected]>
drivers/virtio/virtio_pci.c

index 27e9fc9117cdfa69fee88e32e3636a844d803d5e..2913c2f309f010d8eaf9db7b6c6e1aae16f6fcf4 100644 (file)
@@ -325,7 +325,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++;