浏览代码

disp: rotator: handle debugfs_create_bool properly

The return type of debugfs_create_bool is changed
to void in 6.1 kernel. Add changes to handle
this accordingly.

Change-Id: I1a5413d5f769bc6102918052aa9cdce606185196
Signed-off-by: Vinod Polimera <[email protected]>
Vinod Polimera 2 年之前
父节点
当前提交
93e48fe2de
共有 2 个文件被更改,包括 3 次插入10 次删除
  1. 1 5
      rotator/sde_rotator_debug.c
  2. 2 5
      rotator/sde_rotator_r3_debug.c

+ 1 - 5
rotator/sde_rotator_debug.c

@@ -882,11 +882,7 @@ static int sde_rotator_base_create_debugfs(
 	debugfs_create_u32("iommu_ref_cnt", 0444, debugfs_root, &mdata->iommu_ref_cnt);
 
 	mdata->clk_always_on = false;
-	if (!debugfs_create_bool("clk_always_on", 0644,
-			debugfs_root, &mdata->clk_always_on)) {
-		SDEROT_WARN("failed to create debugfs clk_always_on\n");
-		return -EINVAL;
-	}
+	debugfs_create_bool("clk_always_on", 0644, debugfs_root, &mdata->clk_always_on);
 
 	return 0;
 }

+ 2 - 5
rotator/sde_rotator_r3_debug.c

@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
+ * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
  */
 
@@ -32,11 +33,7 @@ int sde_rotator_r3_create_debugfs(struct sde_rot_mgr *mgr,
 
 	hw_data = mgr->hw_data;
 
-	if (!debugfs_create_bool("dbgmem", 0644,
-			debugfs_root, &hw_data->dbgmem)) {
-		SDEROT_ERR("fail create dbgmem\n");
-		return -EINVAL;
-	}
+	debugfs_create_bool("dbgmem", 0644, debugfs_root, &hw_data->dbgmem);
 
 	debugfs_create_u32("koff_timeout", 0644, debugfs_root, &hw_data->koff_timeout);