File: 11-4.1.0-gpl-only.patch

package info (click to toggle)
fglrx-driver 1:15.9-4~deb8u1~bpo70+1
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy-backports
  • size: 505,568 kB
  • sloc: ansic: 15,231; xml: 4,141; sh: 2,401; makefile: 425
file content (19 lines) | stat: -rw-r--r-- 917 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Do not use pci_ignore_hotplug which is GPL only.

diff -Naur fglrx-driver-15.9.orig/common/lib/modules/fglrx/build_mod/firegl_public.c fglrx-driver-15.9/common/lib/modules/fglrx/build_mod/firegl_public.c
--- fglrx-driver-15.9.orig/common/lib/modules/fglrx/build_mod/firegl_public.c	2015-09-27 11:05:14.583194764 +0200
+++ fglrx-driver-15.9/common/lib/modules/fglrx/build_mod/firegl_public.c	2015-09-27 11:03:27.257085053 +0200
@@ -1125,7 +1125,12 @@
     // directly here to allow suspend/resume without X server start. 
         firegl_pci_save_state((KCL_PCI_DevHandle)pdev, privdev);
         pci_disable_device(pdev);
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)
+	if(pdev)
+	{
+		pdev->ignore_hotplug = 1;
+	}
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)
 	pci_ignore_hotplug(pdev);
 #endif
         PMSG_EVENT(pdev->dev.power.power_state) = state;