aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/cyclades.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/cyclades.c')
-rw-r--r--drivers/tty/cyclades.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/tty/cyclades.c b/drivers/tty/cyclades.c
index d6f6dd28b424..c0e8f2eeb886 100644
--- a/drivers/tty/cyclades.c
+++ b/drivers/tty/cyclades.c
@@ -3,8 +3,6 @@
3#undef Z_EXT_CHARS_IN_BUFFER 3#undef Z_EXT_CHARS_IN_BUFFER
4 4
5/* 5/*
6 * linux/drivers/char/cyclades.c
7 *
8 * This file contains the driver for the Cyclades async multiport 6 * This file contains the driver for the Cyclades async multiport
9 * serial boards. 7 * serial boards.
10 * 8 *
@@ -1445,13 +1443,11 @@ static void cy_shutdown(struct cyclades_port *info, struct tty_struct *tty)
1445{ 1443{
1446 struct cyclades_card *card; 1444 struct cyclades_card *card;
1447 unsigned long flags; 1445 unsigned long flags;
1448 int channel;
1449 1446
1450 if (!(info->port.flags & ASYNC_INITIALIZED)) 1447 if (!(info->port.flags & ASYNC_INITIALIZED))
1451 return; 1448 return;
1452 1449
1453 card = info->card; 1450 card = info->card;
1454 channel = info->line - card->first_line;
1455 if (!cy_is_Z(card)) { 1451 if (!cy_is_Z(card)) {
1456 spin_lock_irqsave(&card->card_lock, flags); 1452 spin_lock_irqsave(&card->card_lock, flags);
1457 1453
@@ -1476,6 +1472,7 @@ static void cy_shutdown(struct cyclades_port *info, struct tty_struct *tty)
1476 spin_unlock_irqrestore(&card->card_lock, flags); 1472 spin_unlock_irqrestore(&card->card_lock, flags);
1477 } else { 1473 } else {
1478#ifdef CY_DEBUG_OPEN 1474#ifdef CY_DEBUG_OPEN
1475 int channel = info->line - card->first_line;
1479 printk(KERN_DEBUG "cyc shutdown Z card %d, channel %d, " 1476 printk(KERN_DEBUG "cyc shutdown Z card %d, channel %d, "
1480 "base_addr %p\n", card, channel, card->base_addr); 1477 "base_addr %p\n", card, channel, card->base_addr);
1481#endif 1478#endif