core/catalyst-legacy/kcl_acpi.patch
2013-05-04 10:59:47 +00:00

17 lines
697 B
Diff

# diff -u kcl.acpi.c kcl.acpi.ckcl_acpi.c_20130221 kcl.acpi.c
kcl_acpi.c
--- 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
@@ -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