diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-03-15 22:05:20 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:53:59 -0400 |
commit | d319c2bcc6b5d716e10f5cb3efe0adf43d3b06ed (patch) | |
tree | 5b3d8125ed7eee452e89c365b834afa1b897dcdb /drivers/gpu | |
parent | 8085c699688dbadbf5d8ad3e1c14fc72498d2502 (diff) |
drm/amdgpu/vi: add missing error handling when setting uvd dclk
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c index 28385b8279da..eff123b5f2e2 100644 --- a/drivers/gpu/drm/amd/amdgpu/vi.c +++ b/drivers/gpu/drm/amd/amdgpu/vi.c | |||
@@ -795,6 +795,8 @@ static int vi_set_uvd_clocks(struct amdgpu_device *adev, u32 vclk, u32 dclk) | |||
795 | return r; | 795 | return r; |
796 | 796 | ||
797 | r = vi_set_uvd_clock(adev, dclk, ixCG_DCLK_CNTL, ixCG_DCLK_STATUS); | 797 | r = vi_set_uvd_clock(adev, dclk, ixCG_DCLK_CNTL, ixCG_DCLK_STATUS); |
798 | if (r) | ||
799 | return r; | ||
798 | 800 | ||
799 | return 0; | 801 | return 0; |
800 | } | 802 | } |