[PATCH] drm/amdgpu/display/dcn2.1: drop unused function

Alex Deucher alexdeucher at gmail.com
Tue Oct 8 19:14:54 UTC 2019


It's the same as the dcn2.0 function which it already uses.

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c
index d2fc61490052..9a6701698faa 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c
@@ -1352,14 +1352,6 @@ static struct pp_smu_funcs *dcn21_pp_smu_create(struct dc_context *ctx)
 	return pp_smu;
 }
 
-static void dcn21_pp_smu_destroy(struct pp_smu_funcs **pp_smu)
-{
-	if (pp_smu && *pp_smu) {
-		kfree(*pp_smu);
-		*pp_smu = NULL;
-	}
-}
-
 static struct audio *dcn21_create_audio(
 		struct dc_context *ctx, unsigned int inst)
 {
-- 
2.20.1



More information about the amd-gfx mailing list