[PATCH] drivers/char/specialix.c: replace interruptible_sleep_on() From: irwan.djajadi@iname.com Replace interruptible_sleep_on() with wait_event_interruptible(). Signed-off-by: Irwan Djajadi Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/char/specialix.c =================================================================== --- linux-kj.orig/drivers/char/specialix.c 2005-10-28 16:39:30.000000000 +0400 +++ linux-kj/drivers/char/specialix.c 2005-10-28 16:43:01.000000000 +0400 @@ -1395,7 +1395,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) { func_exit(); return -EAGAIN;