[PATCH 2/6] drm/amdgpu/si: simplify si_dma_start
Alex Deucher
alexdeucher at gmail.com
Fri May 20 21:50:35 UTC 2016
Remove the wrapper that was a left over from porting the code
into amdgpu.
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
drivers/gpu/drm/amd/amdgpu/si_dma.c | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/si_dma.c b/drivers/gpu/drm/amd/amdgpu/si_dma.c
index 2aa6517..03c11a1 100644
--- a/drivers/gpu/drm/amd/amdgpu/si_dma.c
+++ b/drivers/gpu/drm/amd/amdgpu/si_dma.c
@@ -151,7 +151,7 @@ static void si_dma_stop(struct amdgpu_device *adev)
}
}
-static int si_dma_gfx_resume(struct amdgpu_device *adev)
+static int si_dma_start(struct amdgpu_device *adev)
{
struct amdgpu_ring *ring;
u32 rb_cntl, dma_cntl, ib_cntl, rb_bufsz, reg_offset;
@@ -215,23 +215,6 @@ static int si_dma_gfx_resume(struct amdgpu_device *adev)
}
/**
- * si_dma_start - setup and start the async dma engines
- *
- * @adev: amdgpu_device pointer
- *
- * Set up the DMA engines and enable them (VI).
- * Returns 0 for success, error for failure.
- */
-static int si_dma_start(struct amdgpu_device *adev)
-{
- int r;
-
- r = si_dma_gfx_resume(adev);
-
- return r;
-}
-
-/**
* si_dma_ring_test_ring - simple async dma engine test
*
* @ring: amdgpu_ring structure holding ring information
--
2.5.5
More information about the dri-devel
mailing list