diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2019-11-08 11:22:57 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-11-13 15:29:44 -0500 |
commit | b82197450c0c817deb8e9d7358495d97a373d457 (patch) | |
tree | 9c09c42db1223085ae3925384e76da963d9de363 /drivers | |
parent | defeb878c46e950991d93c678203d2dc980957c0 (diff) | |
download | linux-stable-b82197450c0c817deb8e9d7358495d97a373d457.tar.gz linux-stable-b82197450c0c817deb8e9d7358495d97a373d457.tar.bz2 linux-stable-b82197450c0c817deb8e9d7358495d97a373d457.zip |
drm/amdgpu/display: fix warning when CONFIG_DRM_AMD_DC_DCN is not set
dm_dcn_crtc_high_irq() is only used when CONFIG_DRM_AMD_DC_DCN is set.
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 37c56156a116..c2700bc28c02 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -485,7 +485,7 @@ static void dm_crtc_high_irq(void *interrupt_params) } } - +#if defined(CONFIG_DRM_AMD_DC_DCN) /** * dm_dcn_crtc_high_irq() - Handles VStartup interrupt for DCN generation ASICs * @interrupt params - interrupt parameters @@ -547,6 +547,7 @@ static void dm_dcn_crtc_high_irq(void *interrupt_params) spin_unlock_irqrestore(&adev->ddev->event_lock, flags); } +#endif static int dm_set_clockgating_state(void *handle, enum amd_clockgating_state state) |