Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions drivers/linux/ch34x.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
#ifndef KERNEL_VERSION
#define KERNEL_VERSION(ver, rel, seq) ((ver << 16) | (rel << 8) | (seq))
#endif

#if LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0)
#include <linux/signal.h>
#else
#include <linux/sched/signal.h>
#endif
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
Expand Down Expand Up @@ -588,7 +592,7 @@ static void ch34x_close( struct usb_serial_port *port,
unsigned int c_cflag;
int bps;
long timeout;
wait_queue_t wait;
wait_queue_entry_t wait;

#if(LINUX_VERSION_CODE < KERNEL_VERSION(3, 11, 0))
dbg_ch34x("%s - port:%d", __func__, port->number);
Expand Down