Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248647
b: refs/heads/master
c: 0e7f419
h: refs/heads/master
i:
  248645: f95db1b
  248643: d38c340
  248639: 97c2811
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Apr 19, 2011
1 parent 64ddac9 commit 79f33cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4fd53ef5c97ef7ce909c18bf7fb8b5cdd72b08c1
refs/heads/master: 0e7f4194a0ef70c1d0d40152fa480a63719f35d5
3 changes: 1 addition & 2 deletions trunk/drivers/tty/cyclades.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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
Expand Down

0 comments on commit 79f33cc

Please sign in to comment.