projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: fix wireless mac address on the WRT160NL
[openwrt.git]
/
target
/
linux
/
amazon
/
files
/
drivers
/
serial
/
amazon_asc.c
diff --git
a/target/linux/amazon/files/drivers/serial/amazon_asc.c
b/target/linux/amazon/files/drivers/serial/amazon_asc.c
index
7c17cb0
..
6297549
100644
(file)
--- a/
target/linux/amazon/files/drivers/serial/amazon_asc.c
+++ b/
target/linux/amazon/files/drivers/serial/amazon_asc.c
@@
-102,10
+102,16
@@
static void amazonasc_enable_ms(struct uart_port *port)
return;
}
return;
}
+#include <linux/version.h>
+
static void
amazonasc_rx_chars(struct uart_port *port)
{
static void
amazonasc_rx_chars(struct uart_port *port)
{
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 26))
+ struct tty_struct *tty = port->info->port.tty;
+#else
struct tty_struct *tty = port->info->tty;
struct tty_struct *tty = port->info->tty;
+#endif
unsigned int ch = 0, rsr = 0, fifocnt;
fifocnt = amazon_readl(AMAZON_ASC_FSTAT) & ASCFSTAT_RXFFLMASK;
unsigned int ch = 0, rsr = 0, fifocnt;
fifocnt = amazon_readl(AMAZON_ASC_FSTAT) & ASCFSTAT_RXFFLMASK;
This page took
0.021085 seconds
and
4
git commands to generate.