summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/i915_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/drm/i915_drv.c')
-rw-r--r--sys/dev/drm/i915_drv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/drm/i915_drv.c b/sys/dev/drm/i915_drv.c
index 945ef72..d2795a3 100644
--- a/sys/dev/drm/i915_drv.c
+++ b/sys/dev/drm/i915_drv.c
@@ -114,7 +114,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);
OpenPOWER on IntegriCloud