15 lines
393 B
Diff
15 lines
393 B
Diff
--- a/ddcci/ddcci.c
|
|
+++ b/ddcci/ddcci.c
|
|
@@ -40,7 +40,11 @@ static bool is_registered;
|
|
static dev_t ddcci_cdev_first;
|
|
static dev_t ddcci_cdev_next;
|
|
static dev_t ddcci_cdev_end;
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)
|
|
+static DEFINE_SEMAPHORE(core_lock, 1);
|
|
+#else
|
|
static DEFINE_SEMAPHORE(core_lock);
|
|
+#endif
|
|
|
|
struct bus_type ddcci_bus_type;
|
|
EXPORT_SYMBOL_GPL(ddcci_bus_type);
|