1 From 367e360d68d9dfd7f1b213a47576139ffb6028c8 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Fri, 8 Mar 2019 11:09:49 +0000
4 Subject: [PATCH 380/703] staging: vc-sm-cma: Don't fail if debugfs calls fail.
6 Return codes from debugfs calls should never alter the
9 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
11 drivers/staging/vc04_services/vc-sm-cma/vc_sm.c | 8 --------
12 1 file changed, 8 deletions(-)
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 @@ -681,13 +681,6 @@ static void vc_sm_connected_init(void)
18 /* Create a debug fs directory entry (root). */
19 sm_state->dir_root = debugfs_create_dir(VC_SM_DIR_ROOT_NAME, NULL);
20 - if (!sm_state->dir_root) {
21 - pr_err("[%s]: failed to create \'%s\' directory entry\n",
22 - __func__, VC_SM_DIR_ROOT_NAME);
25 - goto err_stop_sm_service;
28 sm_state->dir_state.show = &vc_sm_cma_global_state_show;
29 sm_state->dir_state.dir_entry =
30 @@ -720,7 +713,6 @@ static void vc_sm_connected_init(void)
32 err_remove_shared_memory:
33 debugfs_remove_recursive(sm_state->dir_root);
35 vc_sm_cma_vchi_stop(&sm_state->sm_handle);
37 pr_info("[%s]: failed, ret %d\n", __func__, ret);