[PATCH] drivers/char/synclinkmp.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/synclinkmp.c =================================================================== --- linux-kj.orig/drivers/char/synclinkmp.c 2005-10-28 16:39:02.000000000 +0400 +++ linux-kj/drivers/char/synclinkmp.c 2005-10-28 16:43:04.000000000 +0400 @@ -757,8 +757,8 @@ static int open(struct tty_struct *tty, /* If port is closing, signal caller to try again */ if (tty_hung_up_p(filp) || info->flags & ASYNC_CLOSING){ - if (info->flags & ASYNC_CLOSING) - interruptible_sleep_on(&info->close_wait); + wait_event_interruptible(info->close_wait, + (info->flags & ASYNC_CLOSING) == 0); retval = ((info->flags & ASYNC_HUP_NOTIFY) ? -EAGAIN : -ERESTARTSYS); goto cleanup;