virtio: wrap find_vqs
We are going to add more parameters to find_vqs, let's wrap the call so we don't need to tweak all drivers every time. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
@@ -869,7 +869,7 @@ static int rpmsg_probe(struct virtio_device *vdev)
|
||||
init_waitqueue_head(&vrp->sendq);
|
||||
|
||||
/* We expect two virtqueues, rx and tx (and in this order) */
|
||||
err = vdev->config->find_vqs(vdev, 2, vqs, vq_cbs, names, NULL);
|
||||
err = virtio_find_vqs(vdev, 2, vqs, vq_cbs, names, NULL);
|
||||
if (err)
|
||||
goto free_vrp;
|
||||
|
||||
|
Reference in New Issue
Block a user