Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/jpeg4.0.3: use num_jpeg_inst for SR-IOV

They should be the same, but use the proper variable.

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c
··· 321 321 if (r) 322 322 return r; 323 323 324 - for (i = 0; i < adev->vcn.num_vcn_inst; ++i) { 324 + for (i = 0; i < adev->jpeg.num_jpeg_inst; ++i) { 325 325 for (j = 0; j < adev->jpeg.num_jpeg_rings; ++j) { 326 326 ring = &adev->jpeg.inst[i].ring_dec[j]; 327 327 ring->wptr = 0;