Skip to content

Instantly share code, notes, and snippets.

@ScottSteiner
Created December 24, 2013 22:15
Show Gist options
  • Save ScottSteiner/8118316 to your computer and use it in GitHub Desktop.
Save ScottSteiner/8118316 to your computer and use it in GitHub Desktop.
Patch for AMD's 13.12 driver which fails in debian. Run with `patch -Np1 -i ../catalyst1312.patch`
--- 13.12/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2013-12-17 20:05:35.000000000 +0100
+++ 13.12/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2013-12-19 18:40:18.386568588 +0100
@@ -995,7 +995,11 @@
#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;
-}
+}
\ No newline at end of file
@ScottSteiner
Copy link
Author

Thanks to Vi0l0 for the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment