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-08-18 08:46:15 +0200
commit454db92db3405ca1bf13945fb122266c09ae62b1 (patch)
treeaa749dab3a6690b682d70ce2e35895e07c555435 /system/nvidia-legacy304-kernel/4.14_kernel.patch
parentd04189e642ca17186cb9b2b5899fa9c12aceb782 (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
+ }