Advertisement
Guest User

kcl_apci.c fix

a guest
Dec 19th, 2013
1,107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. --- ./broken/usr/src/fglrx-13.250/kcl_acpi.c 2013-11-27 11:05:24.000000000 -0500
  2. +++ ./working/usr/src/fglrx-13.250/kcl_acpi.c 2013-11-27 12:24:20.000000000 -0500
  3. @@ -779,9 +779,25 @@
  4. {
  5. #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12)
  6. #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
  7. - pInfo->video_handle = pInfo->pcidev->dev.acpi_node.handle;
  8. +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0)
  9. +
  10. + pInfo->video_handle = pInfo->pcidev->dev.acpi_node.handle;
  11. +
  12. +#else
  13. +
  14. + pInfo->video_handle = pInfo->pcidev->dev.acpi_node.companion;
  15. +
  16. +#endif
  17. #elif LINUX_VERSION_CODE > KERNEL_VERSION(2,6,19)
  18. - pInfo->video_handle = pInfo->pcidev->dev.archdata.acpi_handle;
  19. +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)
  20. +
  21. + pInfo->video_handle = pInfo->pcidev->dev.acpi_node.handle;
  22. +
  23. +#else
  24. +
  25. + pInfo->video_handle = pInfo->pcidev->dev.acpi_node.companion;
  26. +
  27. +#endif
  28. #else
  29. pInfo->video_handle = pInfo->pcidev->dev.firmware_data;
  30. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement