diff options
author | Alan Cox <alan@redhat.com> | 2009-01-02 08:48:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-02 13:19:41 -0500 |
commit | c1314a49d7907b96d72f2c41f8927fc3c738e956 (patch) | |
tree | e19a5127804c871088d57978f8eba00cf9d3c578 /drivers/char/epca.c | |
parent | 6ed1dbaeadd62a026a93aa3ac8680d2dfe9f96b3 (diff) |
tty: Redo the rocket driver locking
Bring this driver into the port locking model
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/epca.c')
-rw-r--r-- | drivers/char/epca.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/char/epca.c b/drivers/char/epca.c index 71225d1af9ee..39ad820b2350 100644 --- a/drivers/char/epca.c +++ b/drivers/char/epca.c | |||
@@ -164,8 +164,6 @@ static int pc_write_room(struct tty_struct *); | |||
164 | static int pc_chars_in_buffer(struct tty_struct *); | 164 | static int pc_chars_in_buffer(struct tty_struct *); |
165 | static void pc_flush_buffer(struct tty_struct *); | 165 | static void pc_flush_buffer(struct tty_struct *); |
166 | static void pc_flush_chars(struct tty_struct *); | 166 | static void pc_flush_chars(struct tty_struct *); |
167 | static int block_til_ready(struct tty_struct *, struct file *, | ||
168 | struct channel *); | ||
169 | static int pc_open(struct tty_struct *, struct file *); | 167 | static int pc_open(struct tty_struct *, struct file *); |
170 | static void post_fep_init(unsigned int crd); | 168 | static void post_fep_init(unsigned int crd); |
171 | static void epcapoll(unsigned long); | 169 | static void epcapoll(unsigned long); |
@@ -422,7 +420,6 @@ static void pc_close(struct tty_struct *tty, struct file *filp) | |||
422 | { | 420 | { |
423 | struct channel *ch; | 421 | struct channel *ch; |
424 | struct tty_port *port; | 422 | struct tty_port *port; |
425 | unsigned long flags; | ||
426 | /* | 423 | /* |
427 | * verifyChannel returns the channel from the tty struct if it is | 424 | * verifyChannel returns the channel from the tty struct if it is |
428 | * valid. This serves as a sanity check. | 425 | * valid. This serves as a sanity check. |
@@ -491,8 +488,6 @@ static void pc_hangup(struct tty_struct *tty) | |||
491 | */ | 488 | */ |
492 | ch = verifyChannel(tty); | 489 | ch = verifyChannel(tty); |
493 | if (ch != NULL) { | 490 | if (ch != NULL) { |
494 | unsigned long flags; | ||
495 | |||
496 | pc_flush_buffer(tty); | 491 | pc_flush_buffer(tty); |
497 | tty_ldisc_flush(tty); | 492 | tty_ldisc_flush(tty); |
498 | shutdown(ch, tty); | 493 | shutdown(ch, tty); |
@@ -750,7 +745,7 @@ static int epca_carrier_raised(struct tty_port *port) | |||
750 | return 0; | 745 | return 0; |
751 | } | 746 | } |
752 | 747 | ||
753 | static void epca_raise_dtr_rts(struct tty_port *port0 | 748 | static void epca_raise_dtr_rts(struct tty_port *port) |
754 | { | 749 | { |
755 | } | 750 | } |
756 | 751 | ||
@@ -1268,7 +1263,7 @@ static void post_fep_init(unsigned int crd) | |||
1268 | u16 tseg, rseg; | 1263 | u16 tseg, rseg; |
1269 | 1264 | ||
1270 | tty_port_init(&ch->port); | 1265 | tty_port_init(&ch->port); |
1271 | ch->port.ops - &epca_port_ops; | 1266 | ch->port.ops = &epca_port_ops; |
1272 | ch->brdchan = bc; | 1267 | ch->brdchan = bc; |
1273 | ch->mailbox = gd; | 1268 | ch->mailbox = gd; |
1274 | INIT_WORK(&ch->tqueue, do_softint); | 1269 | INIT_WORK(&ch->tqueue, do_softint); |