aboutsummaryrefslogtreecommitdiff
path: root/nouveau/nouveau_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'nouveau/nouveau_device.c')
-rw-r--r--nouveau/nouveau_device.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/nouveau/nouveau_device.c b/nouveau/nouveau_device.c
index 0982d3b6..c5253914 100644
--- a/nouveau/nouveau_device.c
+++ b/nouveau/nouveau_device.c
@@ -26,7 +26,7 @@
#include "nouveau_private.h"
-#if NOUVEAU_DRM_HEADER_PATCHLEVEL != 15
+#if NOUVEAU_DRM_HEADER_PATCHLEVEL != 16
#error nouveau_drm.h does not match expected patchlevel, update libdrm.
#endif
@@ -54,12 +54,6 @@ nouveau_device_open_existing(struct nouveau_device **dev, int close,
nvdev->ctx = ctx;
nvdev->needs_close = close;
- ret = drmCommandNone(nvdev->fd, DRM_NOUVEAU_CARD_INIT);
- if (ret) {
- nouveau_device_close((void *)&nvdev);
- return ret;
- }
-
ret = nouveau_device_get_param(&nvdev->base,
NOUVEAU_GETPARAM_VM_VRAM_BASE, &value);
if (ret) {