Created
March 21, 2014 15:44
-
-
Save pmalek/9689111 to your computer and use it in GitHub Desktop.
Fglrx new kernels fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,3) | |
if (!ACPI_SUCCESS(acpi_get_table_with_size(id, 0, &hdr, &tbl_size))) | |
#else | |
tbl_size = 0x7fffffff; | |
if (!ACPI_SUCCESS(acpi_get_table(id, 0, &hdr))) | |
#endif | |
{ | |
return KCL_ACPI_ERROR; | |
} | |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,1) | |
((acpi_tbl_table_handler)handler)(hdr); | |
#else | |
((acpi_table_handler)handler)(hdr); | |
#endif | |
return KCL_ACPI_OK; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment