aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_fops.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-04-29 13:30:44 -0700
committerEric Anholt <eric@anholt.net>2008-04-29 13:32:52 -0700
commitdabd056bf34b389585b618cf03a297877505f06b (patch)
treeacb73138da3dad72850e30958e415947d6123725 /linux-core/drm_fops.c
parent3ad8db2071d30c198403e605f2726fc5c3e46bfd (diff)
Move mmfs ioctls into the DRM. Untested.
Diffstat (limited to 'linux-core/drm_fops.c')
-rw-r--r--linux-core/drm_fops.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-core/drm_fops.c b/linux-core/drm_fops.c
index a4c76f75..2213230c 100644
--- a/linux-core/drm_fops.c
+++ b/linux-core/drm_fops.c
@@ -274,6 +274,9 @@ static int drm_open_helper(struct inode *inode, struct file *filp,
goto out_free;
}
+ if (dev->driver->driver_features & DRIVER_MM)
+ drm_mm_open(priv);
+
if (dev->driver->open) {
ret = dev->driver->open(dev, priv);
if (ret < 0)
@@ -447,6 +450,9 @@ int drm_release(struct inode *inode, struct file *filp)
dev->driver->reclaim_buffers(dev, file_priv);
}
+ if (dev->driver->driver_features & DRIVER_MM)
+ drm_mm_release(file_priv);
+
drm_fasync(-1, filp, 0);
mutex_lock(&dev->ctxlist_mutex);