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