aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/virtio_console.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-06-13 00:16:35 -0400
committerRusty Russell <rusty@rustcorp.com.au>2009-06-12 08:46:36 -0400
commit9499f5e7ed5224c40706f0cec6542a9916bc7606 (patch)
tree3e4e1b36d3d549ea356e88e6e44359a887c6ee01 /drivers/char/virtio_console.c
parentef688e151c00e5d529703be9a04fd506df8bc54e (diff)
virtio: add names to virtqueue struct, mapping from devices to queues.
Add a linked list of all virtqueues for a virtio device: this helps for debugging and is also needed for upcoming interface change. Also, add a "name" field for clearer debug messages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/char/virtio_console.c')
-rw-r--r--drivers/char/virtio_console.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index ff6f5a4b58fb..58684e4a0814 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -202,13 +202,13 @@ static int __devinit virtcons_probe(struct virtio_device *dev)
202 /* Find the input queue. */ 202 /* Find the input queue. */
203 /* FIXME: This is why we want to wean off hvc: we do nothing 203 /* FIXME: This is why we want to wean off hvc: we do nothing
204 * when input comes in. */ 204 * when input comes in. */
205 in_vq = vdev->config->find_vq(vdev, 0, hvc_handle_input); 205 in_vq = vdev->config->find_vq(vdev, 0, hvc_handle_input, "input");
206 if (IS_ERR(in_vq)) { 206 if (IS_ERR(in_vq)) {
207 err = PTR_ERR(in_vq); 207 err = PTR_ERR(in_vq);
208 goto free; 208 goto free;
209 } 209 }
210 210
211 out_vq = vdev->config->find_vq(vdev, 1, NULL); 211 out_vq = vdev->config->find_vq(vdev, 1, NULL, "output");
212 if (IS_ERR(out_vq)) { 212 if (IS_ERR(out_vq)) {
213 err = PTR_ERR(out_vq); 213 err = PTR_ERR(out_vq);
214 goto free_in_vq; 214 goto free_in_vq;