mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[amazon] Some general changes for amazon drivers.
This is mostly needed for kernel 2.6.30 support. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18588 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user