From d6bdc94978c0bca14d8be4bdf1e50c433a9448e0 Mon Sep 17 00:00:00 2001
From: Alberto Milone <alberto.milone@canonical.com>
Date: Tue, 8 Jan 2013 15:55:26 +0100
Subject: [PATCH 1/1] Replace archdata.acpi_handle with acpi_node.handle

This is required for Linux >= 3.8.
---
 kcl_acpi.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kcl_acpi.c b/kcl_acpi.c
index 5f1c195..2b38a92 100755
--- a/kcl_acpi.c
+++ b/kcl_acpi.c
@@ -775,7 +775,9 @@ static unsigned int KCL_ACPI_SearchHandles(KCL_ACPI_DevHandle handle, unsigned i
 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)
+        pInfo->video_handle = pInfo->pcidev->dev.acpi_node.handle;
+    #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;
-- 
1.7.9.5

