diff --git a/packages/x11/driver/xf86-video-nvidia-legacy/patches/xf86-video-nvidia-legacy-04-fix-linux-5.4.patch b/packages/x11/driver/xf86-video-nvidia-legacy/patches/xf86-video-nvidia-legacy-04-fix-linux-5.4.patch new file mode 100644 index 0000000000..4dcadf3d11 --- /dev/null +++ b/packages/x11/driver/xf86-video-nvidia-legacy/patches/xf86-video-nvidia-legacy-04-fix-linux-5.4.patch @@ -0,0 +1,26 @@ +From dbff36065f2359d8ba0e6e359428998f20208f8b Mon Sep 17 00:00:00 2001 +From: MilhouseVH +Date: Tue, 1 Oct 2019 16:20:08 +0100 +Subject: [PATCH] DRIVER_PRIME: remove it for 5.4-rc1 + +Ref: https://github.com/torvalds/linux/commit/0424fdaf883a689d5185c0d0665b265373945898 +--- + kernel/nv-drm.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kernel/nv-drm.c b/kernel/nv-drm.c +index 7097069..a0110fa 100644 +--- a/kernel/nv-drm.c ++++ b/kernel/nv-drm.c +@@ -156,7 +156,7 @@ static const struct file_operations nv_drm_fops = { + }; + + static struct drm_driver nv_drm_driver = { +- .driver_features = DRIVER_GEM | DRIVER_PRIME | DRIVER_LEGACY, ++ .driver_features = DRIVER_GEM | DRIVER_LEGACY, + .load = nv_drm_load, + .unload = nv_drm_unload, + .fops = &nv_drm_fops, +-- +2.14.1 +