drm/amdgpu/display: fix build with CONFIG_DRM_AMD_DC_DCN disabled
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Jan 2021 16:32:11 +0000 (11:32 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Jan 2021 20:18:52 +0000 (15:18 -0500)
commit4928b480cbed50da28eba06bff7eec6a274a3914
treeaba38b5d1d326808c50e1dc2e158e465dd2cba14
parent08da4fcd6d98745fb1b97e37bc02e665eda8d420
drm/amdgpu/display: fix build with CONFIG_DRM_AMD_DC_DCN disabled

dc_allow_idle_optimizations() needs to be protected by
CONFIG_DRM_AMD_DC_DCN.

Fixes: 71338cb4a7c2 ("drm/amd/display: enable idle optimizations for linux (MALL stutter)")
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c