summaryrefslogtreecommitdiff
path: root/bsd-core/i915_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-core/i915_drv.c')
-rw-r--r--bsd-core/i915_drv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bsd-core/i915_drv.c b/bsd-core/i915_drv.c
index def35f0b..b2658f05 100644
--- a/bsd-core/i915_drv.c
+++ b/bsd-core/i915_drv.c
@@ -111,7 +111,9 @@ i915_attach(device_t nbdev)
bzero(dev, sizeof(struct drm_device));
- dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_NOWAIT | M_ZERO);
+ dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM,
+ M_WAITOK | M_ZERO);
+
i915_configure(dev);
return drm_attach(nbdev, i915_pciidlist);