[PATCH] drivers/char/riscom8.c: replace interruptible_sleep_on() From: irwan.djajadi@iname.com Replace interruptible_sleep_on() with wait_event_interruptible(). Signed-off-by: Irwan Djajadi Index: linux-kj/drivers/char/riscom8.c =================================================================== --- linux-kj.orig/drivers/char/riscom8.c 2006-01-18 02:21:36.000000000 +0300 +++ linux-kj/drivers/char/riscom8.c 2006-01-18 16:45:16.000000000 +0300 @@ -941,7 +941,8 @@ static int block_til_ready(struct tty_st * until it's done, and then try again. */ if (tty_hung_up_p(filp) || port->flags & ASYNC_CLOSING) { - interruptible_sleep_on(&port->close_wait); + wait_event_interruptible(port->close_wait, + (port->flags & ASYNC_CLOSING) == 0); if (port->flags & ASYNC_HUP_NOTIFY) return -EAGAIN; else