drm/amd/display: Fix multiple definitions of handle_crc_irq
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Fri, 12 Jan 2018 18:13:11 +0000 (13:13 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:24 +0000 (14:19 -0500)
commitfdb401d03d311399d844b9f23ec5ab98a2811f58
treeb356b5895a420aa425e7911da116560d78105cae
parentf783577c85c00da6a8b226a89a83789d2f105c63
drm/amd/display: Fix multiple definitions of handle_crc_irq

If CONFIG_DEBUG_FS is disabled, then CRC should also be disabled.
Therefore, amdgpu_dm_crtc_handle_crc_irq was redefined as a no-op
function within amdgpu_dm.h.

However, since amdgpu_dm.h is included in multiple files, this caused
conflicts when linking during compile. Therefore, Use a macro to
define the function as a no-op instead.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h