From 6ea087272c0774fc86693a6fc379a2226e10b323 Mon Sep 17 00:00:00 2001 From: Alberto Milone Date: Wed, 8 Jan 2014 16:09:58 +0100 Subject: [PATCH 1/1] Add support for Linux 3.13 Do not use the ACPI handle which was removed from struct acpi_dev_node in Linux 3.13. Use the ACPI companion device instead. --- kcl_acpi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kcl_acpi.c b/kcl_acpi.c index 5eb9fb1..96b6113 100755 --- a/common/lib/modules/fglrx/build_mod/kcl_acpi.c +++ b/common/lib/modules/fglrx/build_mod/kcl_acpi.c @@ -793,7 +793,11 @@ 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(3,8,0) + #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) + pInfo->video_handle = pInfo->pcidev->dev.acpi_node.companion; + #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 -- 1.7.9.5