aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio/virtio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/virtio/virtio.c')
-rw-r--r--drivers/virtio/virtio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c
index 6b6810364860..3f52c767dfe9 100644
--- a/drivers/virtio/virtio.c
+++ b/drivers/virtio/virtio.c
@@ -186,6 +186,8 @@ int register_virtio_device(struct virtio_device *dev)
186 /* Acknowledge that we've seen the device. */ 186 /* Acknowledge that we've seen the device. */
187 add_status(dev, VIRTIO_CONFIG_S_ACKNOWLEDGE); 187 add_status(dev, VIRTIO_CONFIG_S_ACKNOWLEDGE);
188 188
189 INIT_LIST_HEAD(&dev->vqs);
190
189 /* device_register() causes the bus infrastructure to look for a 191 /* device_register() causes the bus infrastructure to look for a
190 * matching driver. */ 192 * matching driver. */
191 err = device_register(&dev->dev); 193 err = device_register(&dev->dev);