[Linux-stm32] [PATCH v2 12/16] rpmsg: virtio: use the driver_override in channel creation ops
Arnaud Pouliquen
arnaud.pouliquen at foss.st.com
Tue Dec 22 10:57:22 UTC 2020
Use the override information from the channel info structure
to set the rpdev override and so links the channel to a specific
driver.
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen at foss.st.com>
---
drivers/rpmsg/virtio_rpmsg_bus.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c
index e87d4cf926eb..c1d4bc08b2a5 100644
--- a/drivers/rpmsg/virtio_rpmsg_bus.c
+++ b/drivers/rpmsg/virtio_rpmsg_bus.c
@@ -416,6 +416,7 @@ static struct rpmsg_device *__rpmsg_create_channel(struct virtproc_info *vrp,
rpdev->dst = chinfo->dst;
rpdev->ops = &virtio_rpmsg_ops;
rpdev->little_endian = virtio_is_little_endian(vrp->vdev);
+ rpdev->driver_override = (char *)chinfo->driver_override;
/*
* rpmsg server channels has predefined local address (for now),
--
2.17.1
More information about the Linux-stm32
mailing list