blob: 0a3b153beb9aba9bc1205144321ee9afa45d0ae8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
Derived from https://github.com/CachyOS/kernel-patches/blob/master/6.14/misc/nvidia/0003-drm-Remove-driver-data-from-struct-drm_driver.patch
This was removed in 6.14 from commit cb2e1c2136
("drm: remove driver date from struct drm_driver and all drivers")
[adjusted for 510.108.03]
diff --git a/nvidia-drm/nvidia-drm-drv.c b/nvidia-drm/nvidia-drm-drv.c
index de9a8ff..922c7b3 100644
--- a/nvidia-drm/nvidia-drm-drv.c
+++ b/nvidia-drm/nvidia-drm-drv.c
@@ -62,6 +62,7 @@
#endif
#include <linux/pci.h>
+#include <linux/version.h>
/*
* Commit fcd70cd36b9b ("drm: Split out drm_probe_helper.h")
@@ -859,7 +860,10 @@ static struct drm_driver nv_drm_driver = {
.name = "nvidia-drm",
.desc = "NVIDIA DRM driver",
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 14, 0)
.date = "20160202",
+#endif
#if defined(NV_DRM_DRIVER_HAS_DEVICE_LIST)
.device_list = LIST_HEAD_INIT(nv_drm_driver.device_list),
|