diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2015-06-26 13:02:57 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-06-29 11:21:52 -0400 |
commit | d8d090b711bc56e095e59f9b536ed3c73c47b36d (patch) | |
tree | 9b236de7f5be2d862c8fcc660dbb15c36c6646e8 /drivers/gpu/drm/amd/amdgpu/cik.c | |
parent | a08c1d516fb3eb302ff14a10eedda844e75c625f (diff) | |
download | op-kernel-dev-d8d090b711bc56e095e59f9b536ed3c73c47b36d.zip op-kernel-dev-d8d090b711bc56e095e59f9b536ed3c73c47b36d.tar.gz |
drm/amdgpu: allocate ip_block_enabled memory in common code
Remove duplication across asic families and make it symmetric
with the freeing of the code in amdgpu_device.c
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/cik.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cik.c b/drivers/gpu/drm/amd/amdgpu/cik.c index 5dab578..341c566 100644 --- a/drivers/gpu/drm/amd/amdgpu/cik.c +++ b/drivers/gpu/drm/amd/amdgpu/cik.c @@ -2256,10 +2256,6 @@ int cik_set_ip_blocks(struct amdgpu_device *adev) return -EINVAL; } - adev->ip_block_enabled = kcalloc(adev->num_ip_blocks, sizeof(bool), GFP_KERNEL); - if (adev->ip_block_enabled == NULL) - return -ENOMEM; - return 0; } |