adjust to 6.4.0 kernel change

This commit is contained in:
internal 2023-07-31 22:08:22 +02:00
parent ccfdc2b984
commit 98f98fea0e
1 changed files with 4 additions and 0 deletions

View File

@ -1094,7 +1094,11 @@ static int __init init_dvbdev(void)
goto error;
}
#if (LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0))
dvb_class = class_create(THIS_MODULE, "dvb");
#else
dvb_class = class_create("dvb");
#endif
if (IS_ERR(dvb_class)) {
retval = PTR_ERR(dvb_class);
goto error;