Skip to contentSkip to conversation

virtio: virtio_pci should not set bus_id.

PATCH New Rusty Russell 1 participant 1 message May 23, 2008 virtio core

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 virtio: virtio_pci should not set bus_id.

The common virtio code sets the bus_id, overriding anything virtio_pci sets anyway.

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 |    1 -
 1 file changed, 1 deletion(-)
drivers/virtio/virtio_pci.c +0 -1
diff -r 2f0d0ce2adbf drivers/virtio/virtio_pci.c
@@ -325,7 +322,6 @@ static int __devinit virtio_pci_probe(st
 	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++;