mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
rpmsg: Update rpmsg_chrdev_register_device function
The rpmsg_chrdev driver has been replaced by the rpmsg_ctrl driver for the /dev/rpmsg_ctrlX devices management. The reference for the driver override is now the rpmsg_ctrl. Update the rpmsg_chrdev_register_device function to reflect the update, and rename the function to use the rpmsg_ctrldev prefix. The platform drivers are updated accordingly. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220124102524.295783-8-arnaud.pouliquen@foss.st.com
This commit is contained in:
committed by
Bjorn Andersson
parent
617d32938d
commit
472f84eef7
@@ -849,7 +849,7 @@ static struct rpmsg_device *rpmsg_virtio_add_ctrl_dev(struct virtio_device *vdev
|
||||
rpdev_ctrl->dev.release = virtio_rpmsg_release_device;
|
||||
rpdev_ctrl->little_endian = virtio_is_little_endian(vrp->vdev);
|
||||
|
||||
err = rpmsg_chrdev_register_device(rpdev_ctrl);
|
||||
err = rpmsg_ctrldev_register_device(rpdev_ctrl);
|
||||
if (err) {
|
||||
kfree(vch);
|
||||
return ERR_PTR(err);
|
||||
|
||||
Reference in New Issue
Block a user