class has no owner field in kernel version >= 6.4.0

This commit is contained in:
internal 2023-07-31 21:37:50 +02:00
parent 781177ea44
commit 73f270d850
1 changed files with 2 additions and 0 deletions

View File

@ -4050,7 +4050,9 @@ static struct device_attribute ddb_attrs_fanspeed[] = {
static struct class ddb_class = {
.name = "ddbridge",
#if (KERNEL_VERSION(6, 4, 0) > LINUX_VERSION_CODE)
.owner = THIS_MODULE,
#endif
.devnode = ddb_devnode,
};