--- 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 }