Commit 130ac6d8 authored by Yu-ting Shen's avatar Yu-ting Shen Committed by Alex Deucher

drm/amd/display: ddc resource data need to be initialized

[WHY]
to initial ddc structure before we use them to avoid error checking.

[HOW]
add 0 as structure initialization value in DCN resource construct
Signed-off-by: default avatarYu-ting Shen <Yu-ting.Shen@amd.com>
Reviewed-by: default avatarMeenakshikumar Somasundaram <Meenakshikumar.Somasundaram@amd.com>
Acked-by: default avatarWayne Lin <waynelin@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b7cc1312
...@@ -3667,7 +3667,7 @@ static bool dcn20_resource_construct( ...@@ -3667,7 +3667,7 @@ static bool dcn20_resource_construct(
int i; int i;
struct dc_context *ctx = dc->ctx; struct dc_context *ctx = dc->ctx;
struct irq_service_init_data init_data; struct irq_service_init_data init_data;
struct ddc_service_init_data ddc_init_data; struct ddc_service_init_data ddc_init_data = {0};
struct _vcs_dpi_soc_bounding_box_st *loaded_bb = struct _vcs_dpi_soc_bounding_box_st *loaded_bb =
get_asic_rev_soc_bb(ctx->asic_id.hw_internal_rev); get_asic_rev_soc_bb(ctx->asic_id.hw_internal_rev);
struct _vcs_dpi_ip_params_st *loaded_ip = struct _vcs_dpi_ip_params_st *loaded_ip =
......
...@@ -2538,7 +2538,7 @@ static bool dcn30_resource_construct( ...@@ -2538,7 +2538,7 @@ static bool dcn30_resource_construct(
int i; int i;
struct dc_context *ctx = dc->ctx; struct dc_context *ctx = dc->ctx;
struct irq_service_init_data init_data; struct irq_service_init_data init_data;
struct ddc_service_init_data ddc_init_data; struct ddc_service_init_data ddc_init_data = {0};
uint32_t pipe_fuses = read_pipe_fuses(ctx); uint32_t pipe_fuses = read_pipe_fuses(ctx);
uint32_t num_pipes = 0; uint32_t num_pipes = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment