Compare commits

..

2 Commits

Author SHA1 Message Date
kschwarz-intrepidcs 9caa973a5a
Merge pull request #16 from genrad/master
Fix for newer 6.4.x Kernel, class_create() sig changed
2023-09-08 10:08:29 -04:00
Doug Potts 2ee6101ec2 Fix for newer 6.5 Kernel, class_create() sig changed 2023-09-01 17:00:47 -04:00
1 changed files with 4 additions and 0 deletions

View File

@ -1156,7 +1156,11 @@ static __init int intrepid_init(void)
return -1;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
intrepid_dev_class = class_create(THIS_MODULE, INTREPID_CLASS_NAME);
#else
intrepid_dev_class = class_create(INTREPID_CLASS_NAME);
#endif
if (IS_ERR(intrepid_dev_class)) {
ret = PTR_ERR(intrepid_dev_class);
pr_alert("intrepid: failed to create device class, got %d\n", ret);