[PATCH 11/13] rpmsg: virtio: use the driver_override in channel creation

From: Arnaud Pouliquen
Date: Fri Jul 31 2020 - 08:11:25 EST


Use the override information from the channel info structure
to set the rpdev override and so link the channel to a specific
driver.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@xxxxxx>
---
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 eaeaefdabf18..dbf7a597ae74 100644
--- a/drivers/rpmsg/virtio_rpmsg_bus.c
+++ b/drivers/rpmsg/virtio_rpmsg_bus.c
@@ -352,6 +352,7 @@ __rpmsg_create_channel(struct virtproc_info *vrp,
rpdev = &vch->rpdev;
rpdev->src = chinfo->src;
rpdev->dst = chinfo->dst;
+ rpdev->driver_override = (char *)chinfo->driver_override;
if (virtio_has_feature(vrp->vdev, VIRTIO_RPMSG_F_NS))
rpdev->ops = &virtio_rpmsg_w_nsa_ops;
else
--
2.17.1