]> git.baikalelectronics.ru Git - kernel.git/commit
tty: cyclades, fix nports handling
authorJiri Slaby <jirislaby@gmail.com>
Thu, 11 Jun 2009 11:34:27 +0000 (12:34 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Jun 2009 15:50:57 +0000 (08:50 -0700)
commit2781ec21ca9bca79fab94d7fe43e05f40162fc22
tree1c16bc97bf515cf641d17478f7e335f45ba51e24
parentcb30948de281cfa233286a2396a6921eb3dfde44
tty: cyclades, fix nports handling

Set up ports right after FW load so that we won't allocate maximal
(64) ports when we use few.

Also remove reading of nports in irq context, since we know it from
initialisation now.

This also fixes a tty ports unregistration on some fail paths and for
Ze which registered 64 and unregistered real port count.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/cyclades.c