diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2009-11-28 22:09:18 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2009-11-28 22:09:18 +0000 |
commit | 9714c8b6425d6fe28b7aac6fbdcb207c05409835 (patch) | |
tree | 9339985310992618ce8fd8108d211ddc417396a0 /target/linux/amazon/files/drivers/serial | |
parent | cfe5a8b5930158a9d1b4aed047088d652116e6e4 (diff) | |
download | master-31e0f0ae-9714c8b6425d6fe28b7aac6fbdcb207c05409835.tar.gz master-31e0f0ae-9714c8b6425d6fe28b7aac6fbdcb207c05409835.tar.bz2 master-31e0f0ae-9714c8b6425d6fe28b7aac6fbdcb207c05409835.zip |
Some general changes for amazon drivers.
This is mostly needed for kernel 2.6.30 support.
SVN-Revision: 18588
Diffstat (limited to 'target/linux/amazon/files/drivers/serial')
-rw-r--r-- | target/linux/amazon/files/drivers/serial/amazon_asc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/amazon/files/drivers/serial/amazon_asc.c b/target/linux/amazon/files/drivers/serial/amazon_asc.c index 7c17cb0f4a..6297549458 100644 --- 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; } +#include <linux/version.h> + 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; +#endif unsigned int ch = 0, rsr = 0, fifocnt; fifocnt = amazon_readl(AMAZON_ASC_FSTAT) & ASCFSTAT_RXFFLMASK; |