aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/r100.c
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2010-01-07 10:08:32 -0500
committerDave Airlie <airlied@redhat.com>2010-01-07 22:10:13 -0500
commitd0269ed8580b492df75dafb011dc51a1390bf200 (patch)
treed1859b65eeb370fc12da5be63ca809503d0d7150 /drivers/gpu/drm/radeon/r100.c
parentcafe6609d6dc0a6a278f9fdbb59ce4d761a35ddd (diff)
drm/radeon/kms: Make sure we release AGP device if we acquired it
In some case we weren't releasing the AGP device at module unloading. This leaded to unfunctional AGP at next module load. This patch make sure we release the AGP bus if we acquire it. 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c
index 1a056b774eec..d2b789e67c39 100644
--- a/drivers/gpu/drm/radeon/r100.c
+++ b/drivers/gpu/drm/radeon/r100.c
@@ -3369,6 +3369,7 @@ void r100_fini(struct radeon_device *rdev)
3369 radeon_gem_fini(rdev); 3369 radeon_gem_fini(rdev);
3370 if (rdev->flags & RADEON_IS_PCI) 3370 if (rdev->flags & RADEON_IS_PCI)
3371 r100_pci_gart_fini(rdev); 3371 r100_pci_gart_fini(rdev);
3372 radeon_agp_fini(rdev);
3372 radeon_irq_kms_fini(rdev); 3373 radeon_irq_kms_fini(rdev);
3373 radeon_fence_driver_fini(rdev); 3374 radeon_fence_driver_fini(rdev);
3374 radeon_bo_fini(rdev); 3375 radeon_bo_fini(rdev);