blob: 504fa676c5df09997922351381a6ebd29aea6224 [file] [log] [blame]
Patrick Williams2194f502022-10-16 14:26:09 -05001Upstream-Status: Pending [Not submitted to upstream yet]
2Signed-off-by: Rui Miguel Silva <rui.silva@arm.com>
3
4From 20cd41fee8e4638eb47072b91d9a9f985730583b Mon Sep 17 00:00:00 2001
5From: Rui Miguel Silva <rui.silva@linaro.org>
6Date: Tue, 27 Sep 2022 10:07:21 +0100
7Subject: [PATCH 2/2] rpmsg: arm: update chrdev to ctrldev registration
8
9Since "rpmsg: Update rpmsg_chrdev_register_device function",
10there was a replacement of the chrdev driver to ctrldev
11driver. Fix the registration.
12
13Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
14---
15 drivers/rpmsg/rpmsg_arm_mailbox.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/drivers/rpmsg/rpmsg_arm_mailbox.c b/drivers/rpmsg/rpmsg_arm_mailbox.c
19index 5c0dcc8e353d..90bc8df90885 100644
20--- a/drivers/rpmsg/rpmsg_arm_mailbox.c
21+++ b/drivers/rpmsg/rpmsg_arm_mailbox.c
22@@ -142,7 +142,7 @@ static int client_probe(struct platform_device *pdev)
23 rpdev->dev.parent = dev;
24 rpdev->dev.release = arm_release_device;
25
26- return rpmsg_chrdev_register_device(rpdev);
27+ return rpmsg_ctrldev_register_device(rpdev);
28 }
29
30 static const struct of_device_id client_of_match[] = {
31--
322.37.3
33