From: Alex Deucher Date: Wed, 3 Jun 2020 17:59:16 +0000 (-0400) Subject: drm/amdgpu/display: fix build without CONFIG_DRM_AMD_DC_DCN3_0 X-Git-Tag: v5.10.7~1861^2~25^2~202 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb8bcc98251b88dbf5ddd6427971d8e7b298ce75;p=platform%2Fkernel%2Flinux-rpi.git drm/amdgpu/display: fix build without CONFIG_DRM_AMD_DC_DCN3_0 Need to guard some new DCN3.0 stuff. Reviewed-by: Nicholas Kazlauskas Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c index 43d0b4e..2972392 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c @@ -288,13 +288,16 @@ void optc1_program_timing( if (optc1_is_two_pixels_per_containter(&patched_crtc_timing) || optc1->opp_count == 2) h_div = H_TIMING_DIV_BY2; +#if defined(CONFIG_DRM_AMD_DC_DCN3_0) if (optc1->tg_mask->OTG_H_TIMING_DIV_MODE != 0) { if (optc1->opp_count == 4) h_div = H_TIMING_DIV_BY4; REG_UPDATE(OTG_H_TIMING_CNTL, OTG_H_TIMING_DIV_MODE, h_div); - } else { + } else +#endif + { REG_UPDATE(OTG_H_TIMING_CNTL, OTG_H_TIMING_DIV_BY2, h_div); }