summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
diff options
context:
space:
mode:
authorDave Airlie2017-09-29 02:47:43 +0200
committerAlex Deucher2017-09-29 18:24:39 +0200
commitc6622f3afcb4da90e2600ee98e91a8a5640f7a27 (patch)
tree5648fb37fba8d22cae604fce23a6dafcc6cf8f8d /drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
parentamdgpu/soc15: make the pcie index/data registers constant. (diff)
downloadkernel-qcow2-linux-c6622f3afcb4da90e2600ee98e91a8a5640f7a27.tar.gz
kernel-qcow2-linux-c6622f3afcb4da90e2600ee98e91a8a5640f7a27.tar.xz
kernel-qcow2-linux-c6622f3afcb4da90e2600ee98e91a8a5640f7a27.zip
amdgpu/nbio: use constant nbio_hdp_flush_reg structs.
This removes the init path as well, since the init path just did some constant init of some structs. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
index c26d205ff3bf..46009db3d195 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
@@ -371,7 +371,7 @@ static void sdma_v4_0_ring_emit_ib(struct amdgpu_ring *ring,
static void sdma_v4_0_ring_emit_hdp_flush(struct amdgpu_ring *ring)
{
u32 ref_and_mask = 0;
- struct nbio_hdp_flush_reg *nbio_hf_reg;
+ const struct nbio_hdp_flush_reg *nbio_hf_reg;
if (ring->adev->flags & AMD_IS_APU)
nbio_hf_reg = &nbio_v7_0_hdp_flush_reg;