diff mbox series

rpmsg: Fix /dev/rpmsg_ctrlx not created

Message ID ME3P282MB1779912414C37D59C4323DEE979FA@ME3P282MB1779.AUSP282.PROD.OUTLOOK.COM (mailing list archive)
State New
Headers show
Series rpmsg: Fix /dev/rpmsg_ctrlx not created | expand

Commit Message

Ian Ding Dec. 27, 2023, 9:54 a.m. UTC
The driver name of rpmsg_char.c is "rpmsg_chrdev", rpmsg_dev_match() will not
match the device with driver_override == "rpmsg_ctrl".

Register rpmsg devices with driver_override == "rpmsg_chrdev".

Fixes: bfd4a664ddfb ("rpmsg: Fix calling device_lock() on non-initialized device")

Signed-off-by: Ian Ding <4dark@outlook.com>
 drivers/rpmsg/rpmsg_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/drivers/rpmsg/rpmsg_internal.h b/drivers/rpmsg/rpmsg_internal.h
index 7985af92aa48..42ab50f385b5 100644
--- a/drivers/rpmsg/rpmsg_internal.h
+++ b/drivers/rpmsg/rpmsg_internal.h
@@ -90,7 +90,7 @@  int rpmsg_release_channel(struct rpmsg_device *rpdev,
 static inline int rpmsg_chrdev_register_device(struct rpmsg_device *rpdev)
-	return rpmsg_register_device_override(rpdev, "rpmsg_ctrl");
+	return rpmsg_register_device_override(rpdev, "rpmsg_chrdev");