Char: cyclades, move spin_lock to one place
authorJiri Slaby <jirislaby@gmail.com>
Thu, 18 Oct 2007 10:06:22 +0000 (03:06 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:26 +0000 (14:37 -0700)
commit1c0a387c1f9e48e480579d3b4e0f9c1a36c77751
treea105b276483f2684efccedf00b147baa3e43f1df
parentce97a09767b59dcde3715ba4a9eebc71b0ce71b2
Char: cyclades, move spin_lock to one place

Lock whole processing in isr, avoid error-prone locking/unlocking in rx/tx
esp.  On fail paths (there was a bug in the past yet).

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/cyclades.c