diff options
| author | Christian König <[email protected]> | 2018-09-17 13:41:45 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-09-27 02:09:21 +0000 |
| commit | f54b30d70bc606f7a154edba5883c7fa23838e9f (patch) | |
| tree | 23cb75c552eae7e36939f580296d43ca1f1ada66 /drivers/gpu/drm/amd/amdgpu/si_ih.c | |
| parent | drm/amdgpu: drop extra newline in amdgpu_iv trace (diff) | |
| download | kernel-f54b30d70bc606f7a154edba5883c7fa23838e9f.tar.gz kernel-f54b30d70bc606f7a154edba5883c7fa23838e9f.zip | |
drm/amdgpu: make function pointers mandatory
We always want those to be setup correctly.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Huang Rui <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/si_ih.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/si_ih.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/si_ih.c b/drivers/gpu/drm/amd/amdgpu/si_ih.c index 60dad63098a2..97711d327527 100644 --- a/drivers/gpu/drm/amd/amdgpu/si_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/si_ih.c @@ -308,8 +308,7 @@ static const struct amdgpu_ih_funcs si_ih_funcs = { static void si_ih_set_interrupt_funcs(struct amdgpu_device *adev) { - if (adev->irq.ih_funcs == NULL) - adev->irq.ih_funcs = &si_ih_funcs; + adev->irq.ih_funcs = &si_ih_funcs; } const struct amdgpu_ip_block_version si_ih_ip_block = |
