diff mbox

drm/i915: Clean up vblank data after lastclose and unload

Message ID 1261100014-1201-1-git-send-email-krh@bitplanet.net (mailing list archive)
State Not Applicable
Headers show

Commit Message

Kristian Hogsberg Dec. 18, 2009, 1:33 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c
index ad73e14..3735478 100644
--- a/drivers/gpu/drm/drm_stub.c
+++ b/drivers/gpu/drm/drm_stub.c
@@ -515,8 +515,6 @@  void drm_put_dev(struct drm_device *dev)
 	}
 	driver = dev->driver;
 
-	drm_vblank_cleanup(dev);
-
 	drm_lastclose(dev);
 
 	if (drm_core_has_MTRR(dev) && drm_core_has_AGP(dev) &&
@@ -531,6 +529,8 @@  void drm_put_dev(struct drm_device *dev)
 	if (dev->driver->unload)
 		dev->driver->unload(dev);
 
+	drm_vblank_cleanup(dev);
+
 	if (drm_core_has_AGP(dev) && dev->agp) {
 		kfree(dev->agp);
 		dev->agp = NULL;