blob: 432e6666235b83d2ca3a2450fc1cb0441a81abc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From 6ea087272c0774fc86693a6fc379a2226e10b323 Mon Sep 17 00:00:00 2001
From: Alberto Milone <alberto.milone@canonical.com>
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
|