diff options
Diffstat (limited to 'drivers/isdn/gigaset/interface.c')
-rw-r--r-- | drivers/isdn/gigaset/interface.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c index 20b7e7a1190f..e2b539675b66 100644 --- a/drivers/isdn/gigaset/interface.c +++ b/drivers/isdn/gigaset/interface.c | |||
@@ -134,7 +134,7 @@ static int if_open(struct tty_struct *tty, struct file *filp) | |||
134 | 134 | ||
135 | if (cs->port.count == 1) { | 135 | if (cs->port.count == 1) { |
136 | tty_port_tty_set(&cs->port, tty); | 136 | tty_port_tty_set(&cs->port, tty); |
137 | tty->low_latency = 1; | 137 | cs->port.low_latency = 1; |
138 | } | 138 | } |
139 | 139 | ||
140 | mutex_unlock(&cs->mutex); | 140 | mutex_unlock(&cs->mutex); |
@@ -546,16 +546,8 @@ void gigaset_if_free(struct cardstate *cs) | |||
546 | void gigaset_if_receive(struct cardstate *cs, | 546 | void gigaset_if_receive(struct cardstate *cs, |
547 | unsigned char *buffer, size_t len) | 547 | unsigned char *buffer, size_t len) |
548 | { | 548 | { |
549 | struct tty_struct *tty = tty_port_tty_get(&cs->port); | 549 | tty_insert_flip_string(&cs->port, buffer, len); |
550 | 550 | tty_flip_buffer_push(&cs->port); | |
551 | if (tty == NULL) { | ||
552 | gig_dbg(DEBUG_IF, "receive on closed device"); | ||
553 | return; | ||
554 | } | ||
555 | |||
556 | tty_insert_flip_string(tty, buffer, len); | ||
557 | tty_flip_buffer_push(tty); | ||
558 | tty_kref_put(tty); | ||
559 | } | 551 | } |
560 | EXPORT_SYMBOL_GPL(gigaset_if_receive); | 552 | EXPORT_SYMBOL_GPL(gigaset_if_receive); |
561 | 553 | ||