b79e10ff6035e0388fb5e7ca2bc3b7c71a8e5337
[openwrt/staging/linusw.git] /
1 From fac8f27de438391d9d9d5a1becf90b13e51caae5 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Mon, 13 May 2019 16:47:54 +0100
4 Subject: [PATCH 627/782] staging: vcsm-cma: Alter dev node permissions to 0666
5
6 Until the udev rules are updated, open up access to this node by
7 default.
8
9 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
10 ---
11 drivers/staging/vc04_services/vc-sm-cma/vc_sm.c | 2 ++
12 1 file changed, 2 insertions(+)
13
14 --- a/drivers/staging/vc04_services/vc-sm-cma/vc_sm.c
15 +++ b/drivers/staging/vc04_services/vc-sm-cma/vc_sm.c
16 @@ -1572,6 +1572,8 @@ static void vc_sm_connected_init(void)
17 sm_state->misc_dev.name = DEVICE_NAME;
18 sm_state->misc_dev.fops = &vc_sm_ops;
19 sm_state->misc_dev.parent = NULL;
20 + /* Temporarily set as 666 until udev rules have been sorted */
21 + sm_state->misc_dev.mode = 0666;
22 ret = misc_register(&sm_state->misc_dev);
23 if (ret) {
24 pr_err("vcsm-cma: failed to register misc device.\n");