1--- ax99100_sp.c
2+++ ax99100_sp.c
3@@ -2670,8 +2670,10 @@ static void serial99100_dma_tx_tasklet (unsigned long param)
4
5 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
6 static DECLARE_MUTEX(serial99100_sem);
7-#else
8+#elif LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0)
9 static DEFINE_SEMAPHORE(serial99100_sem);
10+#else
11+static DEFINE_SEMAPHORE(serial99100_sem, 1);
12 #endif
13
14 static struct uart_driver starex_serial_driver = {