diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c index 1cb52fd19060..e997ebbe43ea 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | |||
@@ -960,8 +960,10 @@ u8 amdgpu_encode_pci_lane_width(u32 lanes) | |||
960 | } | 960 | } |
961 | 961 | ||
962 | struct amd_vce_state* | 962 | struct amd_vce_state* |
963 | amdgpu_get_vce_clock_state(struct amdgpu_device *adev, unsigned idx) | 963 | amdgpu_get_vce_clock_state(void *handle, u32 idx) |
964 | { | 964 | { |
965 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | ||
966 | |||
965 | if (idx < adev->pm.dpm.num_of_vce_states) | 967 | if (idx < adev->pm.dpm.num_of_vce_states) |
966 | return &adev->pm.dpm.vce_states[idx]; | 968 | return &adev->pm.dpm.vce_states[idx]; |
967 | 969 | ||