virtio: add names to virtqueue struct, mapping from devices to queues.
[pandora-kernel.git] / drivers / virtio / virtio.c
index 6b68103..3f52c76 100644 (file)
@@ -186,6 +186,8 @@ int register_virtio_device(struct virtio_device *dev)
        /* Acknowledge that we've seen the device. */
        add_status(dev, VIRTIO_CONFIG_S_ACKNOWLEDGE);
 
+       INIT_LIST_HEAD(&dev->vqs);
+
        /* device_register() causes the bus infrastructure to look for a
         * matching driver. */
        err = device_register(&dev->dev);