drm/amdgpu/disply: set num_crtc earlier
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Dec 2020 21:06:26 +0000 (16:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Dec 2020 04:01:59 +0000 (23:01 -0500)
commitd58159de57437806035d9f331c42d66cd31aedfa
tree49f104a09241b498106ad241104a1267e35233a2
parente42dd87e70e66a54144bf75b62aa21bb518b3ba3
drm/amdgpu/disply: set num_crtc earlier

To avoid a recently added warning:
 Bogus possible_crtcs: [ENCODER:65:TMDS-65] possible_crtcs=0xf (full crtc mask=0x7)
 WARNING: CPU: 3 PID: 439 at drivers/gpu/drm/drm_mode_config.c:617 drm_mode_config_validate+0x178/0x200 [drm]
In this case the warning is harmless, but confusing to users.

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=209123
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c