aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include
diff options
context:
space:
mode:
authorVladimir Kondratyev <wulf@FreeBSD.org>2024-06-26 20:44:12 +0000
committerVladimir Kondratyev <wulf@FreeBSD.org>2024-06-26 20:44:12 +0000
commit460908ea55e67baf85d5cd1b6093154739cc0b9a (patch)
treeb002157a55adbb94d8ea6c7ac51fa2d46d3dbca1 /sys/compat/linuxkpi/common/include
parent73f3589120e61b4b9df1ef60c5be12ccd81878f2 (diff)
Diffstat (limited to 'sys/compat/linuxkpi/common/include')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h
index 668fe9cb8650..00c55b31b248 100644
--- a/sys/compat/linuxkpi/common/include/linux/device.h
+++ b/sys/compat/linuxkpi/common/include/linux/device.h
@@ -343,6 +343,9 @@ put_device(struct device *dev)
}
struct class *class_create(struct module *owner, const char *name);
+#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION >= 60400
+#define class_create(name) class_create(NULL, name)
+#endif
static inline int
class_register(struct class *class)