summaryrefslogtreecommitdiff
path: root/linux-core/drm_drv.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-01-04 17:49:40 +1100
committerDave Airlie <airlied@redhat.com>2008-01-04 17:49:40 +1100
commitd3da253adbf471c9af9c68b2ff67cbf516856352 (patch)
treea3a9bca4adf7556b096edeb12faa3cfe608aef60 /linux-core/drm_drv.c
parentdf9cfeff37d40722df4e8a785478ac41246ca51f (diff)
drm: add initial support for a drm control device node
Diffstat (limited to 'linux-core/drm_drv.c')
-rw-r--r--linux-core/drm_drv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 29fa18d8..58beec66 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -423,7 +423,8 @@ static void drm_cleanup(struct drm_device * dev)
drm_mm_takedown(&dev->offset_manager);
drm_ht_remove(&dev->object_hash);
- drm_put_head(&dev->primary);
+ drm_put_minor(&dev->primary);
+ drm_put_minor(&dev->control);
if (drm_put_dev(dev))
DRM_ERROR("Cannot unload module\n");
}