summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@panoply-rh.(none)>2008-03-05 15:28:38 +1000
committerDave Airlie <airlied@panoply-rh.(none)>2008-03-05 15:28:38 +1000
commit4dbf447f4305e3c2aa8914b5ccfc07d9bf8ef28e (patch)
tree67d3e7e653bf174b11f39e491fc96a49490dd21d /shared-core
parent4aa7efe398911bd58fb348703444a92114e45114 (diff)
drm: fixup compat with old x.org drivers
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/shared-core/i915_init.c b/shared-core/i915_init.c
index a2e08bc1..1f22d171 100644
--- a/shared-core/i915_init.c
+++ b/shared-core/i915_init.c
@@ -401,3 +401,12 @@ void i915_driver_lastclose(struct drm_device * dev)
i915_dma_cleanup(dev);
}
+
+int i915_driver_firstopen(struct drm_device *dev)
+{
+ if (drm_core_check_feature(dev, DRIVER_MODESET))
+ return 0;
+
+ drm_bo_driver_init(dev);
+ return 0;
+}