drm/radeon/kms: call r100_cp_disable rather than duplicating code.
r100_cp_fini was duplicating code of r100_cp_disable, call r100_cp_disable instead. Signed-off-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:

committed by
Dave Airlie

parent
45600232b3
commit
a18d7ea153
@@ -734,8 +734,7 @@ void r100_cp_fini(struct radeon_device *rdev)
|
||||
DRM_ERROR("Wait for CP idle timeout, shutting down CP.\n");
|
||||
}
|
||||
/* Disable ring */
|
||||
rdev->cp.ready = false;
|
||||
WREG32(RADEON_CP_CSQ_CNTL, 0);
|
||||
r100_cp_disable(rdev);
|
||||
radeon_ring_fini(rdev);
|
||||
DRM_INFO("radeon: cp finalized\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user