]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amd/display: Drop unnecessary guard from DC resource
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Thu, 19 May 2022 17:51:42 +0000 (13:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jun 2022 13:12:55 +0000 (09:12 -0400)
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c

index 31f0262fc93083adcf8196c3de9f41d9a67d0b37..28803ca9e3f2ca017598c7dffbed75ca7ed87d60 100644 (file)
@@ -1998,7 +1998,6 @@ enum dc_status dc_remove_stream_from_ctx(
        if (dc->res_pool->funcs->link_enc_unassign)
                dc->res_pool->funcs->link_enc_unassign(new_ctx, del_pipe->stream);
 
-#if defined(CONFIG_DRM_AMD_DC_DCN)
        if (is_dp_128b_132b_signal(del_pipe)) {
                update_hpo_dp_stream_engine_usage(
                        &new_ctx->res_ctx, dc->res_pool,
@@ -2006,7 +2005,6 @@ enum dc_status dc_remove_stream_from_ctx(
                        false);
                remove_hpo_dp_link_enc_from_ctx(&new_ctx->res_ctx, del_pipe, del_pipe->stream);
        }
-#endif
 
        if (del_pipe->stream_res.audio)
                update_audio_usage(