drm/amdgpu/display: fix warnings when CONFIG_DRM_AMD_DC_DCN is not set
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Oct 2020 15:02:26 +0000 (11:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Nov 2020 20:34:33 +0000 (15:34 -0500)
commite6cd859dc65f19567fdc5e2653cbd543ada2f53c
treeb2a9bf48b6058c8ba3a3b47e516c85c5165f8502
parent94ba290da1a9708e52039f38fff1eb4f97ff852a
drm/amdgpu/display: fix warnings when CONFIG_DRM_AMD_DC_DCN is not set

Properly protect the relevant code with CONFIG_DRM_AMD_DC_DCN.

Fixes: 0b08c54bb7a3 ("drm/amd/display: Fix the display corruption issue on Navi10")
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