[PATCH] drivers/char/esp.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/esp.c =================================================================== --- linux-kj.orig/drivers/char/esp.c 2006-01-18 02:21:37.000000000 +0300 +++ linux-kj/drivers/char/esp.c 2006-01-18 16:45:09.000000000 +0300 @@ -2152,8 +2152,8 @@ static int block_til_ready(struct tty_st */ 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); #ifdef SERIAL_DO_RESTART if (info->flags & ASYNC_HUP_NOTIFY) return -EAGAIN;