diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2015-07-28 14:24:53 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-17 16:50:09 -0400 |
commit | 0cf3be21782f8d5b74cce98a2b934e14ef418ef3 (patch) | |
tree | b55121cd82416180fb5469e34caa892fdd2e35ae /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | 97cb7f6e6c4d7d78de7e174d8776a95ef7fd1e8a (diff) | |
download | blackbird-op-linux-0cf3be21782f8d5b74cce98a2b934e14ef418ef3.tar.gz blackbird-op-linux-0cf3be21782f8d5b74cce98a2b934e14ef418ef3.zip |
drm/amdgpu: Implement irq interfaces for CGS
This implements the irq src registrar.
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c index b4d36f0f2153..0aba8e9bc8a0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c @@ -272,6 +272,11 @@ void amdgpu_irq_fini(struct amdgpu_device *adev) kfree(src->enabled_types); src->enabled_types = NULL; + if (src->data) { + kfree(src->data); + kfree(src); + adev->irq.sources[i] = NULL; + } } } |