Эх сурвалжийг харах

disp: rotator: handle debugfs_create_u64 properly

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

Change-Id: I326ae223bb4d1377d0c1c9ec7f64a5064888133c
Signed-off-by: Gaurav LNU <[email protected]>
Signed-off-by: Vinod Polimera <[email protected]>
Gaurav LNU 2 жил өмнө
parent
commit
0181500cc8

+ 2 - 6
rotator/sde_rotator_debug.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
  */
 #define pr_fmt(fmt)	"%s: " fmt, __func__
@@ -908,11 +908,7 @@ static int sde_rotator_core_create_debugfs(
 
 	debugfs_create_u32("ppc_denom", 0600, debugfs_root, &mgr->pixel_per_clk.denom);
 
-	if (!debugfs_create_u64("enable_bw_vote", 0644,
-			debugfs_root, &mgr->enable_bw_vote)) {
-		SDEROT_WARN("failed to create enable_bw_vote\n");
-		return -EINVAL;
-	}
+	debugfs_create_u64("enable_bw_vote", 0644, debugfs_root, &mgr->enable_bw_vote);
 
 	if (mgr->ops_hw_create_debugfs) {
 		ret = mgr->ops_hw_create_debugfs(mgr, debugfs_root);