diff options
author | Christian König <christian.koenig@amd.com> | 2018-05-28 05:47:52 -0400 |
---|---|---|
committer | Christian König <easy2remember.chk@googlemail.com> | 2018-06-20 09:59:34 -0400 |
commit | a19741e5e5a9f1f02f8e3c037bde7d73d4bfae9c (patch) | |
tree | d8bb44f202176642279338f7815a251bb44d6d33 /drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | |
parent | 2227a7a219fdd2b925b1e861f36255efd149ff6d (diff) |
dma_buf: remove device parameter from attach callback v2
The device parameter is completely unused because it is available in the
attachment structure as well.
v2: fix kerneldoc as well
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/226643/
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c index 4b584cb75bf4..bbbb4f9578db 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | |||
@@ -127,7 +127,6 @@ error: | |||
127 | } | 127 | } |
128 | 128 | ||
129 | static int amdgpu_gem_map_attach(struct dma_buf *dma_buf, | 129 | static int amdgpu_gem_map_attach(struct dma_buf *dma_buf, |
130 | struct device *target_dev, | ||
131 | struct dma_buf_attachment *attach) | 130 | struct dma_buf_attachment *attach) |
132 | { | 131 | { |
133 | struct drm_gem_object *obj = dma_buf->priv; | 132 | struct drm_gem_object *obj = dma_buf->priv; |
@@ -135,7 +134,7 @@ static int amdgpu_gem_map_attach(struct dma_buf *dma_buf, | |||
135 | struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); | 134 | struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); |
136 | long r; | 135 | long r; |
137 | 136 | ||
138 | r = drm_gem_map_attach(dma_buf, target_dev, attach); | 137 | r = drm_gem_map_attach(dma_buf, attach); |
139 | if (r) | 138 | if (r) |
140 | return r; | 139 | return r; |
141 | 140 | ||