Char: rocket, switch sleep_on to completion
authorJiri Slaby <jirislaby@gmail.com>
Thu, 18 Oct 2007 10:06:25 +0000 (03:06 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:27 +0000 (14:37 -0700)
commit8cf5a8c5729116d0d60815393ec9f1c0f0bc2df7
treed5a8c13703b02c8d6f05a3cb3e7273991071244f
parent95e0791480af8347460d0cbe34a46eca7e77d0d0
Char: rocket, switch sleep_on to completion

rocket, switch sleep_on to completion

- sleep_on is deprecated and racy, use completion instead
- also check retval of interruptible function and return ERESTARTSYS
  eventually

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/rocket.c
drivers/char/rocket_int.h