summaryrefslogtreecommitdiffstats
path: root/abs/core/nvidia-304xx/kernel-4.14.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-11-22 17:47:24 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-11-22 17:47:24 (GMT)
commit76c05e2ee6e9d8c3a85f404a8cf4b907f92c220a (patch)
treea4876a72161750ec4ac321be160651f10a5d565b /abs/core/nvidia-304xx/kernel-4.14.patch
parentbe0043037d6f113d4b82d8884daa745b4db15742 (diff)
downloadlinhes_pkgbuild-76c05e2ee6e9d8c3a85f404a8cf4b907f92c220a.zip
linhes_pkgbuild-76c05e2ee6e9d8c3a85f404a8cf4b907f92c220a.tar.gz
linhes_pkgbuild-76c05e2ee6e9d8c3a85f404a8cf4b907f92c220a.tar.bz2
nvidia-304xx & nvidia-304xx-utils: update to 304.137
Diffstat (limited to 'abs/core/nvidia-304xx/kernel-4.14.patch')
-rw-r--r--abs/core/nvidia-304xx/kernel-4.14.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/abs/core/nvidia-304xx/kernel-4.14.patch b/abs/core/nvidia-304xx/kernel-4.14.patch
new file mode 100644
index 0000000..a38adbd
--- /dev/null
+++ b/abs/core/nvidia-304xx/kernel-4.14.patch
@@ -0,0 +1,29 @@
+diff -u -r NVIDIA-Linux-x86_64-340.104-no-compat32/kernel/nv-drm.c NVIDIA-Linux-x86_64-340.104-no-compat32-kernel4.14/kernel/nv-drm.c
+--- NVIDIA-Linux-x86_64-340.104-no-compat32/kernel/nv-drm.c 2017-09-15 01:16:51.000000000 +0200
++++ NVIDIA-Linux-x86_64-340.104-no-compat32-kernel4.14/kernel/nv-drm.c 2017-11-19 00:51:45.006654148 +0100
+@@ -173,8 +173,12 @@
+ {
+ int ret = 0;
+ #if defined(NV_DRM_AVAILABLE)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
++ ret = drm_legacy_pci_init(&nv_drm_driver, pci_driver);
++#else
+ ret = drm_pci_init(&nv_drm_driver, pci_driver);
+ #endif
++#endif
+ return ret;
+ }
+
+@@ -183,8 +187,12 @@
+ )
+ {
+ #if defined(NV_DRM_AVAILABLE)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
++ drm_legacy_pci_exit(&nv_drm_driver, pci_driver);
++#else
+ drm_pci_exit(&nv_drm_driver, pci_driver);
+ #endif
++#endif
+ }
+
+ RM_STATUS NV_API_CALL nv_alloc_os_descriptor_handle(