cyclades: close cleanup
authorJiri Slaby <jirislaby@gmail.com>
Sat, 19 Sep 2009 20:13:13 +0000 (13:13 -0700)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:13 +0000 (13:13 -0700)
commit23342262964722b41c7d06cfadc215039e48881b
treea422b1a07945d9b2bb6e3657de9c97478cdae920
parent174e6fe01e7881caaa350b5e98e4c6189b6cb593
cyclades: close cleanup

Use new tty helpers for close, which allows much code removal.

The only real change is locking. card_lock for protecting was
used inappropriately (just to have a critical section, no matter
which lock is used), so the change to port->lock is fine.

Remove also useless debug printks while being there.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/cyclades.c