rpmsg_virtio: Do not use rpmsg_virtio_{create,delete}_virtqueues helpers

These are only used internally by rpmsg_virtio. They also already exist
as part of the virtio API. Do not create an extra wrapper API out of
these functions. Use the virtio functions directly in rpmsg_virtio.c.

Signed-off-by: Andrew Davis <afd@ti.com>
This commit is contained in:
Andrew Davis
2024-04-02 18:05:03 +02:00
committed by Arnaud Pouliquen
parent 962b6ef071
commit 435a74175a
+4 -4
View File
@@ -892,8 +892,8 @@ int rpmsg_init_vdev_with_config(struct rpmsg_virtio_device *rvdev,
metal_list_init(&rvdev->reclaimer);
/* Create virtqueues for remote device */
status = rpmsg_virtio_create_virtqueues(rvdev, 0, RPMSG_NUM_VRINGS,
vq_names, callback);
status = virtio_create_virtqueues(rvdev->vdev, 0, RPMSG_NUM_VRINGS,
vq_names, callback, NULL);
if (status != RPMSG_SUCCESS)
return status;
@@ -982,7 +982,7 @@ int rpmsg_init_vdev_with_config(struct rpmsg_virtio_device *rvdev,
#ifndef VIRTIO_DEVICE_ONLY
err:
rpmsg_virtio_delete_virtqueues(rvdev);
virtio_delete_virtqueues(rvdev->vdev);
return status;
#endif /*!VIRTIO_DEVICE_ONLY*/
}
@@ -1004,7 +1004,7 @@ void rpmsg_deinit_vdev(struct rpmsg_virtio_device *rvdev)
rvdev->rvq = 0;
rvdev->svq = 0;
rpmsg_virtio_delete_virtqueues(rvdev);
virtio_delete_virtqueues(rvdev->vdev);
metal_mutex_deinit(&rdev->lock);
}
}