diff options
author | Dave Airlie <airlied@redhat.com> | 2008-02-28 16:24:17 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-02-28 16:24:17 +1000 |
commit | 01dcc47d895997f77c9457558e974d41c23ed4e1 (patch) | |
tree | 0550c9f9675b7dbcffa65583e4e866a36bf58057 /linux-core/drm_fops.c | |
parent | 132ba667f4a88bb182e2d2abc7c4e60699398380 (diff) |
drm: add modesetting as a driver feature.
This change adds a driver feature that for i915 is controlled by a module
parameter. You now need to do insmod i915.ko modeset=1 to enable it the
modesetting paths.
It also fixes up lots of X paths. I can run my new DDX driver on this code
with and without modesetting enabled
Diffstat (limited to 'linux-core/drm_fops.c')
-rw-r--r-- | linux-core/drm_fops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-core/drm_fops.c b/linux-core/drm_fops.c index 5a74f424..fcadc544 100644 --- a/linux-core/drm_fops.c +++ b/linux-core/drm_fops.c @@ -481,7 +481,8 @@ int drm_release(struct inode *inode, struct file *filp) } mutex_unlock(&dev->ctxlist_mutex); - drm_fb_release(filp); + if (drm_core_check_feature(dev, DRIVER_MODESET)) + drm_fb_release(filp); file_priv->master = NULL; |