diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2018-03-14 03:38:48 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-03-15 10:57:41 -0400 |
commit | 5b2a3d2c153eb49343091e5394201d4f7e5554ed (patch) | |
tree | e3b0559dc47964405a2c47e0f3a179d7809c35ba /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 5771632723aea8a7c994846b084bdb44000f82e6 (diff) |
drm/amdgpu: Don't compared ip_block_type with ip_block_index
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-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 a3e81e36a7ee..218f0efa39fb 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1580,7 +1580,7 @@ int amdgpu_device_ip_suspend(struct amdgpu_device *adev) | |||
1580 | if (!adev->ip_blocks[i].status.valid) | 1580 | if (!adev->ip_blocks[i].status.valid) |
1581 | continue; | 1581 | continue; |
1582 | /* ungate blocks so that suspend can properly shut them down */ | 1582 | /* ungate blocks so that suspend can properly shut them down */ |
1583 | if (i != AMD_IP_BLOCK_TYPE_SMC && | 1583 | if (adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_SMC && |
1584 | adev->ip_blocks[i].version->funcs->set_clockgating_state) { | 1584 | adev->ip_blocks[i].version->funcs->set_clockgating_state) { |
1585 | r = adev->ip_blocks[i].version->funcs->set_clockgating_state((void *)adev, | 1585 | r = adev->ip_blocks[i].version->funcs->set_clockgating_state((void *)adev, |
1586 | AMD_CG_STATE_UNGATE); | 1586 | AMD_CG_STATE_UNGATE); |