Simplify unipi_tty to be compatible with linux 5.10
authorMiroslav Ondra <ondra@faster.cz>
Tue, 3 Aug 2021 09:30:06 +0000 (11:30 +0200)
committerMiroslav Ondra <ondra@faster.cz>
Tue, 3 Aug 2021 09:30:06 +0000 (11:30 +0200)
modules/unipi/src/unipi_tty.c

index 22d70eaaac0a3b940c4552b1c1500b3cca6ac8bc..32f2917b53b54367a8f7b5bbb9651cc16c777724 100644 (file)
 #include <linux/vmalloc.h>
 #include <linux/version.h>
 
+#include "unipi_tty.h"
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)
 
-#include "unipi_tty.h"
 
 /* number of characters left in xmit buffer before select has we have room */
 #define WAKEUP_CHARS 256