summaryrefslogtreecommitdiffstats
path: root/abs/core/nvidia-340xx/fs52243.patch
blob: b6dc35a2e7ff7af3757c9ee773885901b6aba851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- kernel/nv-drm.c	2016-12-15 12:41:26.000000000 +0100
+++ kernel/nv-drm.c	2016-12-15 12:58:48.000000000 +0100
@@ -115,7 +115,11 @@
 };
 
 static struct drm_driver nv_drm_driver = {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
+    .driver_features = DRIVER_GEM | DRIVER_PRIME | DRIVER_LEGACY,
+#else
     .driver_features = DRIVER_GEM | DRIVER_PRIME,
+#endif
     .load = nv_drm_load,
     .unload = nv_drm_unload,
     .fops = &nv_drm_fops,