core/catalyst-legacy/kcl_acpi.patch

17 lines
697 B
Diff
Raw Normal View History

2013-05-04 18:59:21 +08:00
# diff -u kcl.acpi.c kcl.acpi.ckcl_acpi.c_20130221 kcl.acpi.c
2013-05-02 02:57:21 +08:00
kcl_acpi.c
2013-05-04 18:59:21 +08:00
--- common/lib/modules/fglrx/build_mod/kcl_acpi.c_20130221 2012-03-24 05:38:48.000000000 +0900
+++ common/lib/modules/fglrx/build_mod/kcl_acpi.c 2013-02-21 20:20:12.000000000 +0900
2013-05-02 02:57:21 +08:00
@@ -776,7 +776,11 @@
{
#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 = ACPI_HANDLE(&pInfo->pcidev->dev);
+ #else
pInfo->video_handle = pInfo->pcidev->dev.archdata.acpi_handle;
+ #endif
#else
pInfo->video_handle = pInfo->pcidev->dev.firmware_data;
#endif