drm/amdgpu:Correct max uvd handles
authorJames Zhu <James.Zhu@amd.com>
Tue, 6 Mar 2018 19:43:50 +0000 (14:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Mar 2018 09:54:31 +0000 (10:54 +0100)
commit783fd8eb86fc415dfff9c13dfe3289836888fc97
tree93d61cca5bd86feee41afd8ac27ada8b0efd06a5
parente919af14fa1789415c21b5f03d2c522174962e18
drm/amdgpu:Correct max uvd handles

commit 0e5ee33d2a54e4c55fe92857f23e1cbb0440d6de upstream.

Max uvd handles should use adev->uvd.max_handles instead of
AMDGPU_MAX_UVD_HANDLES here.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c