[PATCH] drivers/char/istallion.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/istallion.c =================================================================== --- linux-kj.orig/drivers/char/istallion.c 2005-12-05 13:20:00.000000000 +0300 +++ linux-kj/drivers/char/istallion.c 2005-12-05 13:20:14.000000000 +0300 @@ -1051,7 +1051,8 @@ static int stli_open(struct tty_struct * * 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); @@ -1091,7 +1092,8 @@ static int stli_open(struct tty_struct * * 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);