tty: relock generic_serial
authorAlan Cox <alan@redhat.com>
Fri, 2 Jan 2009 13:45:36 +0000 (13:45 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Jan 2009 18:19:38 +0000 (10:19 -0800)
commit510a3049573868d3d77414bfa55d293f44d0dbbe
treef6a5d19c9e7bc49320dd8c6867cec7f885e9c35b
parent3e61696bdc2103107674b06d0daf30b76193e922
tty: relock generic_serial

Switch generic_serial to do port count locking via the tty_port structure
ready for moving to a common port wait routine. Keep the old driver lock for
internal calling so we don't risk messing up the drivers below until we
are ready.

Still needs kref conversions

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/generic_serial.c