blob: 2f62c97358d065e64194c71d4b0f9de8c941ba38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
|