Created
June 30, 2023 18:05
-
-
Save seiferteric/7cf197f52e7e623ec184bf43607f40fd to your computer and use it in GitHub Desktop.
Magewell Pro Capture HDMI linux drivers patch fix for 6.4 kernel
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
diff -u --recursive src/sources/avstream/mw-event-dev.c ../ProCaptureForLinux_4328_fixed/src/sources/avstream/mw-event-dev.c | |
--- src/sources/avstream/mw-event-dev.c 2022-12-16 01:04:51.000000000 -0800 | |
+++ ../ProCaptureForLinux_4328_fixed/src/sources/avstream/mw-event-dev.c 2023-06-30 11:04:45.660541222 -0700 | |
@@ -155,7 +155,11 @@ | |
g_dev.c_major = MAJOR(dev_id); | |
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0) | |
g_dev.c_class = class_create(THIS_MODULE, MW_EVENT_NAME); | |
+#else | |
+ g_dev.c_class = class_create(MW_EVENT_NAME); | |
+#endif | |
if (IS_ERR(g_dev.c_class)) { | |
ret = PTR_ERR(g_dev.c_class); | |
g_dev.c_class = NULL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment