|
@@ -1445,13 +1445,11 @@ static void cy_shutdown(struct cyclades_port *info, struct tty_struct *tty)
|
|
|
{
|
|
|
struct cyclades_card *card;
|
|
|
unsigned long flags;
|
|
|
- int channel;
|
|
|
|
|
|
if (!(info->port.flags & ASYNC_INITIALIZED))
|
|
|
return;
|
|
|
|
|
|
card = info->card;
|
|
|
- channel = info->line - card->first_line;
|
|
|
if (!cy_is_Z(card)) {
|
|
|
spin_lock_irqsave(&card->card_lock, flags);
|
|
|
|
|
@@ -1476,6 +1474,7 @@ static void cy_shutdown(struct cyclades_port *info, struct tty_struct *tty)
|
|
|
spin_unlock_irqrestore(&card->card_lock, flags);
|
|
|
} else {
|
|
|
#ifdef CY_DEBUG_OPEN
|
|
|
+ int channel = info->line - card->first_line;
|
|
|
printk(KERN_DEBUG "cyc shutdown Z card %d, channel %d, "
|
|
|
"base_addr %p\n", card, channel, card->base_addr);
|
|
|
#endif
|