mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
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: Yu-ting Shen <Yu-ting.Shen@amd.com> Reviewed-by: Meenakshikumar Somasundaram <Meenakshikumar.Somasundaram@amd.com> Acked-by: Wayne Lin <waynelin@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b7cc1312c1
commit
130ac6d8c6
|
|
@ -3667,7 +3667,7 @@ static bool dcn20_resource_construct(
|
|||
int i;
|
||||
struct dc_context *ctx = dc->ctx;
|
||||
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 =
|
||||
get_asic_rev_soc_bb(ctx->asic_id.hw_internal_rev);
|
||||
struct _vcs_dpi_ip_params_st *loaded_ip =
|
||||
|
|
|
|||
|
|
@ -2538,7 +2538,7 @@ static bool dcn30_resource_construct(
|
|||
int i;
|
||||
struct dc_context *ctx = dc->ctx;
|
||||
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 num_pipes = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user