aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/virtio/virtio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c
index 13866789b356..59918dfc3cb7 100644
--- a/drivers/virtio/virtio.c
+++ b/drivers/virtio/virtio.c
@@ -166,7 +166,7 @@ int register_virtio_device(struct virtio_device *dev)
166 int err; 166 int err;
167 167
168 dev->dev.bus = &virtio_bus; 168 dev->dev.bus = &virtio_bus;
169 sprintf(dev->dev.bus_id, "%u", dev->index); 169 sprintf(dev->dev.bus_id, "virtio%u", dev->index);
170 170
171 /* We always start by resetting the device, in case a previous 171 /* We always start by resetting the device, in case a previous
172 * driver messed it up. This also tests that code path a little. */ 172 * driver messed it up. This also tests that code path a little. */