[PATCH] drivers/char/stallion.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/stallion.c =================================================================== --- linux-kj.orig/drivers/char/stallion.c 2005-12-05 13:20:00.000000000 +0300 +++ linux-kj/drivers/char/stallion.c 2005-12-05 13:20:15.000000000 +0300 @@ -1042,7 +1042,8 @@ static int stl_open(struct tty_struct *t * for it is done with the same context. */ if (portp->flags & ASYNC_CLOSING) { - interruptible_sleep_on(&portp->close_wait); + wait_event_interruptible(portp->close_wait, + (portp->flags & ASYNC_CLOSING) == 0); if (portp->flags & ASYNC_HUP_NOTIFY) return(-EAGAIN); return(-ERESTARTSYS);