summarylogtreecommitdiffstats
path: root/arch-fglrx-acpi_handle.patch
diff options
context:
space:
mode:
authorVi0L02015-06-26 23:08:18 +0200
committerVi0L02015-06-26 23:08:18 +0200
commit6ba2cb92eac8ae292a785c970f13f5b8ebe882e1 (patch)
tree094ac840e57da5a1c0f0517c981d0927229d1aaf /arch-fglrx-acpi_handle.patch
parent27357157125bc30c297ff1ddf9efc3462e1fe359 (diff)
downloadaur-6ba2cb92eac8ae292a785c970f13f5b8ebe882e1.tar.gz
adding 4.1 kernel support
Diffstat (limited to 'arch-fglrx-acpi_handle.patch')
-rw-r--r--arch-fglrx-acpi_handle.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch-fglrx-acpi_handle.patch b/arch-fglrx-acpi_handle.patch
new file mode 100644
index 000000000000..2f62c97358d0
--- /dev/null
+++ b/arch-fglrx-acpi_handle.patch
@@ -0,0 +1,17 @@
+--- 13.1/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2013-01-15 22:33:27.000000000 +0100
++++ 13.1/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2015-06-26 22:01:03.082264877 +0200
+@@ -775,7 +775,13 @@
+ unsigned int ATI_API_CALL KCL_ACPI_GetHandles(kcl_match_info_t *pInfo)
+ {
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12)
+- #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,19)
++ #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
++ #ifdef ACPI_HANDLE
++ pInfo->video_handle = ACPI_HANDLE(&(pInfo->pcidev->dev));
++ #else
++ pInfo->video_handle = pInfo->pcidev->dev.acpi_node.handle;
++ #endif
++ #elif LINUX_VERSION_CODE > KERNEL_VERSION(2,6,19)
+ pInfo->video_handle = pInfo->pcidev->dev.archdata.acpi_handle;
+ #else
+ pInfo->video_handle = pInfo->pcidev->dev.firmware_data;