summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/r100.c
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2009-09-09 22:23:27 +0200
committerDave Airlie <airlied@redhat.com>2009-09-10 10:12:57 +1000
commita18d7ea15356679f58c2fafe2957786c5f7f9201 (patch)
tree5ab3aace1436b610b9432c3287d36904687edc80 /drivers/gpu/drm/radeon/r100.c
parent45600232b3dbb97817c9e15de848c742901893e1 (diff)
downloadlinux-a18d7ea15356679f58c2fafe2957786c5f7f9201.tar.gz
linux-a18d7ea15356679f58c2fafe2957786c5f7f9201.tar.bz2
linux-a18d7ea15356679f58c2fafe2957786c5f7f9201.zip
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/r100.c')
-rw-r--r--drivers/gpu/drm/radeon/r100.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c
index 938a6936d929..4e1c55162ccb 100644
--- a/drivers/gpu/drm/radeon/r100.c
+++ b/drivers/gpu/drm/radeon/r100.c
@@ -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");
}