diff options
author | Stefan Agner <stefan@agner.ch> | 2018-06-19 05:16:56 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-06-19 14:17:39 -0400 |
commit | a21daa88d4f08c959a36ad9760df045407a080e5 (patch) | |
tree | 7b51fee0a3326c49df4847da6df95cbb0c930fd1 /drivers/gpu | |
parent | 761f58e0e91334983cce60637adfbf7492aa97b3 (diff) |
drm/amdgpu: Use correct enum to set powergating state
Use enum amd_powergating_state instead of enum amd_clockgating_state.
The underlying value stays the same, so there is no functional change
in practise. This fixes a warning seen with clang:
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1930:14: warning: implicit
conversion from enumeration type 'enum amd_clockgating_state' to
different enumeration type 'enum amd_powergating_state'
[-Wenum-conversion]
AMD_CG_STATE_UNGATE);
^~~~~~~~~~~~~~~~~~~
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index f81e8d53d708..cd8177967e67 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1925,7 +1925,7 @@ int amdgpu_device_ip_suspend(struct amdgpu_device *adev) | |||
1925 | if (adev->powerplay.pp_feature & PP_GFXOFF_MASK) | 1925 | if (adev->powerplay.pp_feature & PP_GFXOFF_MASK) |
1926 | amdgpu_device_ip_set_powergating_state(adev, | 1926 | amdgpu_device_ip_set_powergating_state(adev, |
1927 | AMD_IP_BLOCK_TYPE_SMC, | 1927 | AMD_IP_BLOCK_TYPE_SMC, |
1928 | AMD_CG_STATE_UNGATE); | 1928 | AMD_PG_STATE_UNGATE); |
1929 | 1929 | ||
1930 | /* ungate SMC block first */ | 1930 | /* ungate SMC block first */ |
1931 | r = amdgpu_device_ip_set_clockgating_state(adev, AMD_IP_BLOCK_TYPE_SMC, | 1931 | r = amdgpu_device_ip_set_clockgating_state(adev, AMD_IP_BLOCK_TYPE_SMC, |