aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
diff options
context:
space:
mode:
authorkbuild test robot <fengguang.wu@intel.com>2018-05-24 14:54:45 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-05-25 12:02:04 -0400
commitadea72c5046f7faffff969ece04c3f31e669edf4 (patch)
tree655289bd9e5a2b57815898662cfde0d776b23b44 /drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
parentbfdec234047889f4f6af1ec45c7c502a4405b3fb (diff)
drm/amdgpu: vcn_v1_0_is_idle() can be static
Fixes: 9b4c412a654c ("drm/amdgpu: Add static CG control for VCN on RV") Signed-off-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
index 110b294ebed3..29684c3ea4ef 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
@@ -769,14 +769,14 @@ static int vcn_v1_0_stop(struct amdgpu_device *adev)
769 return 0; 769 return 0;
770} 770}
771 771
772bool vcn_v1_0_is_idle(void *handle) 772static bool vcn_v1_0_is_idle(void *handle)
773{ 773{
774 struct amdgpu_device *adev = (struct amdgpu_device *)handle; 774 struct amdgpu_device *adev = (struct amdgpu_device *)handle;
775 775
776 return (RREG32_SOC15(VCN, 0, mmUVD_STATUS) == 0x2); 776 return (RREG32_SOC15(VCN, 0, mmUVD_STATUS) == 0x2);
777} 777}
778 778
779int vcn_v1_0_wait_for_idle(void *handle) 779static int vcn_v1_0_wait_for_idle(void *handle)
780{ 780{
781 struct amdgpu_device *adev = (struct amdgpu_device *)handle; 781 struct amdgpu_device *adev = (struct amdgpu_device *)handle;
782 int ret = 0; 782 int ret = 0;