mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-13 22:15:18 +02:00
renames drm_pci_init to drm_legacy_pci_init in the driver, the function
has been deprecated and renamed in
10631d724d
.
Original patch written by MilhouseVH via
https://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/x11/driver/xf86-video-nvidia-legacy/patches/xf86-video-nvidia-legacy-0010-kernel-4.14.patch .
26 lines
635 B
Diff
26 lines
635 B
Diff
--- kernel/nv-drm.c.orig 2017-11-15 21:28:26.896689841 +0100
|
|
+++ kernel/nv-drm.c 2017-11-15 21:31:01.579707509 +0100
|
|
@@ -173,7 +173,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;
|
|
}
|
|
@@ -183,7 +187,11 @@
|
|
)
|
|
{
|
|
#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
|
|
}
|
|
|