From 73f270d850a38c6c28f9603e84537377499e6974 Mon Sep 17 00:00:00 2001 From: internal <> Date: Mon, 31 Jul 2023 21:37:50 +0200 Subject: [PATCH] class has no owner field in kernel version >= 6.4.0 --- ddbridge/ddbridge-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ddbridge/ddbridge-core.c b/ddbridge/ddbridge-core.c index e9785e1..7c645c4 100644 --- a/ddbridge/ddbridge-core.c +++ b/ddbridge/ddbridge-core.c @@ -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, };