From: Alan Cox Date: Mon, 13 Oct 2008 09:32:09 +0000 (+0100) Subject: epca: call tty_port_init X-Git-Tag: v2.6.28-rc1~688 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9ae7b08ad5c91baf9c223844bfd41ca9bc54917b;p=linux-2.6-omap-h63xx.git epca: call tty_port_init Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/epca.c b/drivers/char/epca.c index 456e4ede049..4998b2761e8 100644 --- a/drivers/char/epca.c +++ b/drivers/char/epca.c @@ -1376,6 +1376,7 @@ static void post_fep_init(unsigned int crd) unsigned long flags; u16 tseg, rseg; + tty_port_init(&ch->port); ch->brdchan = bc; ch->mailbox = gd; INIT_WORK(&ch->tqueue, do_softint); @@ -1510,10 +1511,6 @@ static void post_fep_init(unsigned int crd) ch->fepstopca = 0; ch->close_delay = 50; - ch->port.count = 0; - ch->port.blocked_open = 0; - init_waitqueue_head(&ch->port.open_wait); - init_waitqueue_head(&ch->port.close_wait); spin_unlock_irqrestore(&epca_lock, flags); }