[PATCH] drivers/char/cyclades.c: replace interruptible_sleep_on() From: irwan.djajadi@iname.com drivers/char/cyclades.c: replace interruptible_sleep_on() with wait_event_interruptible() Signed-off-by: Irwan Djajadi Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/char/cyclades.c =================================================================== --- linux-kj.orig/drivers/char/cyclades.c 2005-12-05 13:20:00.000000000 +0300 +++ linux-kj/drivers/char/cyclades.c 2005-12-05 13:20:12.000000000 +0300 @@ -2326,9 +2326,8 @@ block_til_ready(struct tty_struct *tty, * until it's done, and then 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); return ((info->flags & ASYNC_HUP_NOTIFY) ? -EAGAIN : -ERESTARTSYS); } @@ -2595,8 +2594,8 @@ cy_open(struct tty_struct *tty, struct f * If the port is the middle of closing, bail out now */ 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); return ((info->flags & ASYNC_HUP_NOTIFY) ? -EAGAIN : -ERESTARTSYS); }