X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fchar%2Fvirtio_console.c;h=dc17fe3a88bc48f2813ad5c3e5dd27efd00ff7d3;hb=6a306e8b4c81a1c1f538e390d92bfe80d04b254c;hp=100e8a201e3aa5d2a8890cb79b171373dc829afe;hpb=37e58df30063e229ee5157f9d1c1fa1d749917c2;p=~andy%2Flinux diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 100e8a201e3..dc17fe3a88b 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -141,7 +141,7 @@ int __init virtio_cons_early_init(int (*put_chars)(u32, const char *, int)) * never remove the console device we never need this pointer again. * * Finally we put our input buffer in the input queue, ready to receive. */ -static int virtcons_probe(struct virtio_device *dev) +static int __devinit virtcons_probe(struct virtio_device *dev) { int err; struct hvc_struct *hvc; @@ -158,13 +158,13 @@ static int virtcons_probe(struct virtio_device *dev) /* Find the input queue. */ /* FIXME: This is why we want to wean off hvc: we do nothing * when input comes in. */ - in_vq = vdev->config->find_vq(vdev, NULL); + in_vq = vdev->config->find_vq(vdev, 0, NULL); if (IS_ERR(in_vq)) { err = PTR_ERR(in_vq); goto free; } - out_vq = vdev->config->find_vq(vdev, NULL); + out_vq = vdev->config->find_vq(vdev, 1, NULL); if (IS_ERR(out_vq)) { err = PTR_ERR(out_vq); goto free_in_vq;