only bo finish at driver unload

main
Dave Airlie 2007-04-11 14:34:22 +10:00
parent b329f91502
commit 9d12da5917
1 changed files with 2 additions and 2 deletions

View File

@ -156,8 +156,6 @@ int drm_lastclose(drm_device_t * dev)
* We can't do much about this function failing.
*/
drm_bo_driver_finish(dev);
if (dev->driver->lastclose)
dev->driver->lastclose(dev);
DRM_DEBUG("driver lastclose completed\n");
@ -400,6 +398,8 @@ static void drm_cleanup(drm_device_t * dev)
DRM_DEBUG("mtrr_del=%d\n", retval);
}
drm_bo_driver_finish(dev);
if (drm_core_has_AGP(dev) && dev->agp) {
drm_free(dev->agp, sizeof(*dev->agp), DRM_MEM_AGPLISTS);
dev->agp = NULL;