drm/radeon/kms: Make sure we release AGP device if we acquired it
authorJerome Glisse <jglisse@redhat.com>
Thu, 7 Jan 2010 15:08:32 +0000 (16:08 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Jan 2010 03:10:13 +0000 (13:10 +1000)
commitd0269ed8580b492df75dafb011dc51a1390bf200
treed1859b65eeb370fc12da5be63ca809503d0d7150
parentcafe6609d6dc0a6a278f9fdbb59ce4d761a35ddd
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>
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r300.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/radeon_agp.c
drivers/gpu/drm/radeon/rv770.c