Commit d319c2bc authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu/vi: add missing error handling when setting uvd dclk

Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8085c699
...@@ -795,6 +795,8 @@ static int vi_set_uvd_clocks(struct amdgpu_device *adev, u32 vclk, u32 dclk) ...@@ -795,6 +795,8 @@ static int vi_set_uvd_clocks(struct amdgpu_device *adev, u32 vclk, u32 dclk)
return r; return r;
r = vi_set_uvd_clock(adev, dclk, ixCG_DCLK_CNTL, ixCG_DCLK_STATUS); r = vi_set_uvd_clock(adev, dclk, ixCG_DCLK_CNTL, ixCG_DCLK_STATUS);
if (r)
return r;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment