blob: 6642189009b81b216d019905a2fe80ca25b4bed2 (
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
|
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
}
|