summaryrefslogtreecommitdiff
path: root/x11-drivers/ati-drivers/files/ati-drivers-kernel-3.8-acpihandle.patch
blob: bdff4fb7345087aed62e9d04d915c1b3b57e4382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- common/lib/modules/fglrx/build_mod/kcl_acpi.c	2012-07-04 21:43:47.000000000 +0200
+++ common/lib/modules/fglrx/build_mod/kcl_acpi.c.new	2012-12-23 11:25:38.000000000 +0100
@@ -775,11 +775,7 @@
 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)
-        pInfo->video_handle = pInfo->pcidev->dev.archdata.acpi_handle;
-    #else 
-        pInfo->video_handle = pInfo->pcidev->dev.firmware_data;
-    #endif    
+    pInfo->video_handle = DEVICE_ACPI_HANDLE(&pInfo->pcidev->dev);
     if ( pInfo->video_handle &&
         (KCL_ACPI_videoDevice(pInfo->video_handle) != KCL_ACPI_OK) )
     {