提交 a6b2f87b 编写于 作者: P Paul Fulghum 提交者: Linus Torvalds

synclink_gt: enable RI interrupt

- Enable ring indicator interrupt.

- Remove vendor specific CVS version tags.
Signed-off-by: NPaul Fulghum <paulkf@microgate.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 158bc69e
/* /*
* $Id: synclink_gt.c,v 4.50 2007/07/25 19:29:25 paulkf Exp $
*
* Device driver for Microgate SyncLink GT serial adapters. * Device driver for Microgate SyncLink GT serial adapters.
* *
* written by Paul Fulghum for Microgate Corporation * written by Paul Fulghum for Microgate Corporation
...@@ -91,7 +89,6 @@ ...@@ -91,7 +89,6 @@
* module identification * module identification
*/ */
static char *driver_name = "SyncLink GT"; static char *driver_name = "SyncLink GT";
static char *driver_version = "$Revision: 4.50 $";
static char *tty_driver_name = "synclink_gt"; static char *tty_driver_name = "synclink_gt";
static char *tty_dev_prefix = "ttySLG"; static char *tty_dev_prefix = "ttySLG";
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -1309,7 +1306,7 @@ static int read_proc(char *page, char **start, off_t off, int count, ...@@ -1309,7 +1306,7 @@ static int read_proc(char *page, char **start, off_t off, int count,
off_t begin = 0; off_t begin = 0;
struct slgt_info *info; struct slgt_info *info;
len += sprintf(page, "synclink_gt driver:%s\n", driver_version); len += sprintf(page, "synclink_gt driver\n");
info = slgt_device_list; info = slgt_device_list;
while( info ) { while( info ) {
...@@ -2441,7 +2438,7 @@ static void program_hw(struct slgt_info *info) ...@@ -2441,7 +2438,7 @@ static void program_hw(struct slgt_info *info)
info->ri_chkcount = 0; info->ri_chkcount = 0;
info->dsr_chkcount = 0; info->dsr_chkcount = 0;
slgt_irq_on(info, IRQ_DCD | IRQ_CTS | IRQ_DSR); slgt_irq_on(info, IRQ_DCD | IRQ_CTS | IRQ_DSR | IRQ_RI);
get_signals(info); get_signals(info);
if (info->netcount || if (info->netcount ||
...@@ -3576,7 +3573,7 @@ static void slgt_cleanup(void) ...@@ -3576,7 +3573,7 @@ static void slgt_cleanup(void)
struct slgt_info *info; struct slgt_info *info;
struct slgt_info *tmp; struct slgt_info *tmp;
printk("unload %s %s\n", driver_name, driver_version); printk(KERN_INFO "unload %s\n", driver_name);
if (serial_driver) { if (serial_driver) {
for (info=slgt_device_list ; info != NULL ; info=info->next_device) for (info=slgt_device_list ; info != NULL ; info=info->next_device)
...@@ -3619,7 +3616,7 @@ static int __init slgt_init(void) ...@@ -3619,7 +3616,7 @@ static int __init slgt_init(void)
{ {
int rc; int rc;
printk("%s %s\n", driver_name, driver_version); printk(KERN_INFO "%s\n", driver_name);
serial_driver = alloc_tty_driver(MAX_DEVICES); serial_driver = alloc_tty_driver(MAX_DEVICES);
if (!serial_driver) { if (!serial_driver) {
...@@ -3650,9 +3647,8 @@ static int __init slgt_init(void) ...@@ -3650,9 +3647,8 @@ static int __init slgt_init(void)
goto error; goto error;
} }
printk("%s %s, tty major#%d\n", printk(KERN_INFO "%s, tty major#%d\n",
driver_name, driver_version, driver_name, serial_driver->major);
serial_driver->major);
slgt_device_count = 0; slgt_device_count = 0;
if ((rc = pci_register_driver(&pci_driver)) < 0) { if ((rc = pci_register_driver(&pci_driver)) < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册