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