drm/amd/display: Create dc_state after resource initialization
authorDillon Varone <dillon.varone@amd.com>
Wed, 13 Dec 2023 20:04:42 +0000 (15:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Dec 2023 19:59:02 +0000 (14:59 -0500)
commit760ed918fb1f857490868e4bc91265a4d5d37f37
treee09d6066f970d058888ac6e4977c4e696401a9d7
parentb03281e925f996ffc850ad25de10f4586a8c7435
drm/amd/display: Create dc_state after resource initialization

[WHY&HOW]
After refactoring dc_state, it is always constructed at the time of its
creation. Construction can only happen after dc resources are initialized, so
move creation to be after this.

Reviewed-by: George Shen <george.shen@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Dillon Varone <dillon.varone@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c