From: Xianting Tian Date: Fri, 23 Jul 2021 05:42:59 +0000 (+0800) Subject: virtio-balloon: Use virtio_find_vqs() helper X-Git-Tag: accepted/tizen/unified/20230118.172025~6382^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81a83d7f4cfcb255c040df09ce83249fabf8733a;p=platform%2Fkernel%2Flinux-rpi.git virtio-balloon: Use virtio_find_vqs() helper Use the helper virtio_find_vqs(). Signed-off-by: Xianting Tian Reviewed-by: David Hildenbrand Acked-by: Jason Wang Link: https://lore.kernel.org/r/20210723054259.2779-1-xianting.tian@linux.alibaba.com Signed-off-by: Michael S. Tsirkin --- diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index 47dce91f..c22ff01 100644 --- a/drivers/virtio/virtio_balloon.c +++ b/drivers/virtio/virtio_balloon.c @@ -531,8 +531,8 @@ static int init_vqs(struct virtio_balloon *vb) callbacks[VIRTIO_BALLOON_VQ_REPORTING] = balloon_ack; } - err = vb->vdev->config->find_vqs(vb->vdev, VIRTIO_BALLOON_VQ_MAX, - vqs, callbacks, names, NULL, NULL); + err = virtio_find_vqs(vb->vdev, VIRTIO_BALLOON_VQ_MAX, vqs, + callbacks, names, NULL); if (err) return err;