summaryrefslogtreecommitdiffstats
path: root/system/nvidia-legacy304-kernel/4.14_kernel.patch
diff options
context:
space:
mode:
author Matteo Bernardini2018-02-15 18:24:26 +0100
committer Matteo Bernardini2019-12-01 08:59:52 +0100
commita44314120a6f8ccd90379afbd80218547a51dcf3 (patch)
tree85d694864eb54b1fe971a5ac0b1faa542ae14e1a /system/nvidia-legacy304-kernel/4.14_kernel.patch
parent0a75303e7d6b044cf86185ec25d8ed078aae15ee (diff)
downloadslackbuilds-nvidia-legacy304-kernel.tar.gz
system/nvidia-legacy304-kernel: Patched for the newer kernels.nvidia-legacy304-kernel
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy304-kernel/4.14_kernel.patch')
-rw-r--r--system/nvidia-legacy304-kernel/4.14_kernel.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/system/nvidia-legacy304-kernel/4.14_kernel.patch b/system/nvidia-legacy304-kernel/4.14_kernel.patch
new file mode 100644
index 0000000000..6642189009
--- /dev/null
+++ b/system/nvidia-legacy304-kernel/4.14_kernel.patch
@@ -0,0 +1,26 @@
+diff -ur a/kernel/nv-drm.c b/kernel/nv-drm.c
+--- a/kernel/nv-drm.c 2017-09-14 23:51:09.000000003 +0300
++++ b/kernel/nv-drm.c 2017-12-06 18:47:48.279729889 +0200
+@@ -121,7 +121,11 @@
+ {
+ int ret = 0;
+ #if defined(NV_DRM_AVAILABLE)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)
+ ret = drm_pci_init(&nv_drm_driver, pci_driver);
++#else
++ ret = drm_legacy_pci_init(&nv_drm_driver, pci_driver);
++#endif
+ #endif
+ return ret;
+ }
+@@ -131,6 +135,10 @@
+ )
+ {
+ #if defined(NV_DRM_AVAILABLE)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0)
+ drm_pci_exit(&nv_drm_driver, pci_driver);
++#else
++ drm_legacy_pci_exit(&nv_drm_driver, pci_driver);
++#endif
+ #endif
+ }