Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -uNr recpt1-master.orig/driver/pt1_pci.c recpt1-master/driver/pt1_pci.c
- --- recpt1-master.orig/driver/pt1_pci.c 2023-05-03 00:20:10.000000000 +0900
- +++ recpt1-master/driver/pt1_pci.c 2023-07-25 23:19:48.861092798 +0900
- @@ -1033,7 +1033,11 @@
- static int __init pt1_pci_init(void)
- {
- printk(KERN_INFO "%s", version);
- +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,0)
- + pt1video_class = class_create(DRIVERNAME);
- +#else
- pt1video_class = class_create(THIS_MODULE, DRIVERNAME);
- +#endif
- if (IS_ERR(pt1video_class))
- return PTR_ERR(pt1video_class);
- return pci_register_driver(&pt1_driver);
Advertisement
Add Comment
Please, Sign In to add comment