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.pouliq...@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

Reply via email to