9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
14 lines
424 B
Diff
14 lines
424 B
Diff
--- ax99100_sp.c
|
|
+++ ax99100_sp.c
|
|
@@ -2670,8 +2670,10 @@ static void serial99100_dma_tx_tasklet (unsigned long param)
|
|
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
|
|
static DECLARE_MUTEX(serial99100_sem);
|
|
-#else
|
|
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0)
|
|
static DEFINE_SEMAPHORE(serial99100_sem);
|
|
+#else
|
|
+static DEFINE_SEMAPHORE(serial99100_sem, 1);
|
|
#endif
|
|
|
|
static struct uart_driver starex_serial_driver = {
|