summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-08-04 14:59:49 +1000
committerDave Airlie <airlied@redhat.com>2008-08-04 14:59:49 +1000
commitfd75c02ddd380c102ca089f015f14dfe964910b1 (patch)
tree9eefdd9a3b4a73be61236453b88628850e847fc3 /linux-core
parentaa8e15f8b51e555e78cb93e279bad5843eea5391 (diff)
drm: finish bo after lastclose
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 751322db..c503d484 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -170,8 +170,6 @@ int drm_lastclose(struct drm_device * dev)
DRM_DEBUG("\n");
- if (!drm_core_check_feature(dev, DRIVER_MODESET))
- drm_bo_driver_finish(dev);
/*
* We can't do much about this function failing.
@@ -181,6 +179,8 @@ int drm_lastclose(struct drm_device * dev)
dev->driver->lastclose(dev);
DRM_DEBUG("driver lastclose completed\n");
+ if (!drm_core_check_feature(dev, DRIVER_MODESET))
+ drm_bo_driver_finish(dev);
/* if (dev->irq_enabled)
drm_irq_uninstall(dev); */