diff options
| author | Christian König <[email protected]> | 2017-07-20 21:45:18 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-08-15 18:45:53 +0000 |
| commit | f5e1c740afb6fec8969234a066b1628246a6a08d (patch) | |
| tree | 504fe94ef5949253d4a1d8d3d59be88f332b79cd /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
| parent | drm/amd/powerplay: update didt configs (diff) | |
| download | kernel-f5e1c740afb6fec8969234a066b1628246a6a08d.tar.gz kernel-f5e1c740afb6fec8969234a066b1628246a6a08d.zip | |
drm/amdgpu: cleanup kptr handling
Don't keep around the same pointer twice.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index 833b172a2c2a..f53d53d7a0af 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h @@ -147,6 +147,7 @@ int amdgpu_bo_create_kernel(struct amdgpu_device *adev, void amdgpu_bo_free_kernel(struct amdgpu_bo **bo, u64 *gpu_addr, void **cpu_addr); int amdgpu_bo_kmap(struct amdgpu_bo *bo, void **ptr); +void *amdgpu_bo_kptr(struct amdgpu_bo *bo); void amdgpu_bo_kunmap(struct amdgpu_bo *bo); struct amdgpu_bo *amdgpu_bo_ref(struct amdgpu_bo *bo); void amdgpu_bo_unref(struct amdgpu_bo **bo); |
