Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47543
b: refs/heads/master
c: 5ff7205
h: refs/heads/master
i:
  47541: 186a983
  47539: e05c27b
  47535: c5b8431
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Feb 11, 2007
1 parent 55b80d1 commit 80b73e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 722d5e4ae89f061582cc46ccbbd3b5ae87a6e165
refs/heads/master: 5ff7205dd9084c96cf2bedc4d0481790c5a7a635
5 changes: 4 additions & 1 deletion trunk/drivers/char/mxser_new.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,9 @@ static int mxser_startup(struct mxser_port *info)
* and set the speed of the serial port
*/
mxser_change_speed(info, NULL);
info->flags |= ASYNC_INITIALIZED;
spin_unlock_irqrestore(&info->slock, flags);

info->flags |= ASYNC_INITIALIZED;
return 0;
}

Expand Down Expand Up @@ -925,6 +925,7 @@ static void mxser_shutdown(struct mxser_port *info)
static int mxser_open(struct tty_struct *tty, struct file *filp)
{
struct mxser_port *info;
unsigned long flags;
int retval, line;

line = tty->index;
Expand All @@ -941,7 +942,9 @@ static int mxser_open(struct tty_struct *tty, struct file *filp)
/*
* Start up serial port
*/
spin_lock_irqsave(&info->slock, flags);
info->count++;
spin_unlock_irqrestore(&info->slock, flags);
retval = mxser_startup(info);
if (retval)
return retval;
Expand Down

0 comments on commit 80b73e1

Please sign in to comment.