summaryrefslogtreecommitdiff
path: root/linux-core/drm_drv.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-06-20 16:40:14 -0700
committerKeith Packard <keithp@keithp.com>2008-06-20 16:40:14 -0700
commit2bd9799e4cf0d778e46453422157143e36274062 (patch)
treee9a9f8c0bbda227cc5ee89eb470e2b8dc1f74f8b /linux-core/drm_drv.c
parent918420deefb978d4e572121b4273d717bdbfde8e (diff)
Add device-specific proc_init and proc_cleanup hooks
This allows device drivers to add proc files
Diffstat (limited to 'linux-core/drm_drv.c')
-rw-r--r--linux-core/drm_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 980752c2..bc32ed50 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -422,7 +422,7 @@ static void drm_cleanup(struct drm_device * dev)
drm_memrange_takedown(&dev->offset_manager);
drm_ht_remove(&dev->object_hash);
- drm_put_minor(&dev->primary);
+ drm_put_minor(dev);
if (drm_put_dev(dev))
DRM_ERROR("Cannot unload module\n");
}