diff options
author | Alan Cox <alan@redhat.com> | 2008-07-16 16:57:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-20 20:12:38 -0400 |
commit | 44b7d1b37f786c61d0e382b6f72f605f73de284b (patch) | |
tree | 2ac150e99311cde2e841bb6c80ac9d2800c8aff7 /drivers/char/sx.c | |
parent | 593573bc55c9e1999b9679da4e477c0220a6fbbd (diff) |
tty: add more tty_port fields
Move more bits into the tty_port structure
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/sx.c')
-rw-r--r-- | drivers/char/sx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/sx.c b/drivers/char/sx.c index b1239ee48b78..d5cffcd6a572 100644 --- a/drivers/char/sx.c +++ b/drivers/char/sx.c | |||
@@ -2395,6 +2395,7 @@ static int sx_init_portstructs(int nboards, int nports) | |||
2395 | board->ports = port; | 2395 | board->ports = port; |
2396 | for (j = 0; j < boards[i].nports; j++) { | 2396 | for (j = 0; j < boards[i].nports; j++) { |
2397 | sx_dprintk(SX_DEBUG_INIT, "initing port %d\n", j); | 2397 | sx_dprintk(SX_DEBUG_INIT, "initing port %d\n", j); |
2398 | tty_port_init(&port->gs.port); | ||
2398 | port->gs.magic = SX_MAGIC; | 2399 | port->gs.magic = SX_MAGIC; |
2399 | port->gs.close_delay = HZ / 2; | 2400 | port->gs.close_delay = HZ / 2; |
2400 | port->gs.closing_wait = 30 * HZ; | 2401 | port->gs.closing_wait = 30 * HZ; |
@@ -2407,7 +2408,6 @@ static int sx_init_portstructs(int nboards, int nports) | |||
2407 | /* | 2408 | /* |
2408 | * Initializing wait queue | 2409 | * Initializing wait queue |
2409 | */ | 2410 | */ |
2410 | tty_port_init(&port->gs.port); | ||
2411 | port++; | 2411 | port++; |
2412 | } | 2412 | } |
2413 | } | 2413 | } |