diff options
author | Christian König <christian.koenig@amd.com> | 2018-09-17 09:41:45 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-26 22:09:21 -0400 |
commit | f54b30d70bc606f7a154edba5883c7fa23838e9f (patch) | |
tree | 23cb75c552eae7e36939f580296d43ca1f1ada66 /drivers/gpu/drm/amd/amdgpu/cz_ih.c | |
parent | 0dd1e5bbecd75b6977d47be39f85af1bda524006 (diff) |
drm/amdgpu: make function pointers mandatory
We always want those to be setup correctly.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cz_ih.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/cz_ih.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cz_ih.c b/drivers/gpu/drm/amd/amdgpu/cz_ih.c index 960c29e17da6..9385da1e1e40 100644 --- a/drivers/gpu/drm/amd/amdgpu/cz_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/cz_ih.c | |||
@@ -449,8 +449,7 @@ static const struct amdgpu_ih_funcs cz_ih_funcs = { | |||
449 | 449 | ||
450 | static void cz_ih_set_interrupt_funcs(struct amdgpu_device *adev) | 450 | static void cz_ih_set_interrupt_funcs(struct amdgpu_device *adev) |
451 | { | 451 | { |
452 | if (adev->irq.ih_funcs == NULL) | 452 | adev->irq.ih_funcs = &cz_ih_funcs; |
453 | adev->irq.ih_funcs = &cz_ih_funcs; | ||
454 | } | 453 | } |
455 | 454 | ||
456 | const struct amdgpu_ip_block_version cz_ih_ip_block = | 455 | const struct amdgpu_ip_block_version cz_ih_ip_block = |