summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2017-10-11 10:03:10 -0400
committerDave Airlie <airlied@redhat.com>2017-10-17 10:43:04 +1000
commit8db02ca3410b0668d520c0c5d7ba0e7e3eaa811a (patch)
tree9fa79861c3c22815f9f6f04a2b6d4fe380f7a53e /drivers/gpu/drm/amd/display
parentf1548455ce89cbb7708428f6a7989a3fe180ed55 (diff)
downloadlinux-8db02ca3410b0668d520c0c5d7ba0e7e3eaa811a.tar.bz2
drm/amd/display: make amdgpu_dm_irq_handler static
It's not used outside the file. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c6
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h9
2 files changed, 3 insertions, 12 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c
index 1b7df0b6c6d3..52b6e4a91d8b 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c
@@ -560,9 +560,9 @@ static void amdgpu_dm_irq_immediate_work(struct amdgpu_device *adev,
* Generic IRQ handler, calls all registered high irq work immediately, and
* schedules work for low irq
*/
-int amdgpu_dm_irq_handler(struct amdgpu_device *adev,
- struct amdgpu_irq_src *source,
- struct amdgpu_iv_entry *entry)
+static int amdgpu_dm_irq_handler(struct amdgpu_device *adev,
+ struct amdgpu_irq_src *source,
+ struct amdgpu_iv_entry *entry)
{
enum dc_irq_source src =
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h
index 393fcf7bbcb4..82f8e761beca 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h
@@ -80,15 +80,6 @@ void amdgpu_dm_irq_unregister_interrupt(struct amdgpu_device *adev,
enum dc_irq_source irq_source,
void *ih_index);
-/**
- * amdgpu_dm_irq_handler
- * Generic IRQ handler, calls all registered high irq work immediately, and
- * schedules work for low irq
- */
-int amdgpu_dm_irq_handler(struct amdgpu_device *adev,
- struct amdgpu_irq_src *source,
- struct amdgpu_iv_entry *entry);
-
void amdgpu_dm_set_irq_funcs(struct amdgpu_device *adev);
void amdgpu_dm_hpd_init(struct amdgpu_device *adev);