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)
commit963118eef9e6706e2b5356309fb0cdd9c9eba81d
tree1c16bc97bf515cf641d17478f7e335f45ba51e24
parent08a951e1693e324bd035b194002a82b9057fd9c5
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