From: Paul Gortmaker Date: Tue, 8 May 2012 15:17:55 +0000 (-0400) Subject: cris: fix missing tty arg in wait_event_interruptible_tty call X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fd11b42e3598779cb25feaefb1d534a39fc35009;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git cris: fix missing tty arg in wait_event_interruptible_tty call Commit d29f3ef39be4eec0362b985305fc526d9be318cf "tty_lock: Localise the lock" added a tty arg to wait_event_interruptible_tty() but it missed this arch specific instance for cris, causing a compile failure. Cc: Mikael Starvik Cc: Jesper Nilsson Cc: Alan Cox Cc: Arnd Bergmann Signed-off-by: Paul Gortmaker Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/crisv10.c b/drivers/tty/serial/crisv10.c index b431a5164f4..7264d4d2671 100644 --- a/drivers/tty/serial/crisv10.c +++ b/drivers/tty/serial/crisv10.c @@ -3976,7 +3976,7 @@ block_til_ready(struct tty_struct *tty, struct file * filp, */ if (tty_hung_up_p(filp) || (info->flags & ASYNC_CLOSING)) { - wait_event_interruptible_tty(info->close_wait, + wait_event_interruptible_tty(tty, info->close_wait, !(info->flags & ASYNC_CLOSING)); #ifdef SERIAL_DO_RESTART if (info->flags & ASYNC_HUP_NOTIFY) @@ -4115,7 +4115,7 @@ rs_open(struct tty_struct *tty, struct file * filp) */ if (tty_hung_up_p(filp) || (info->flags & ASYNC_CLOSING)) { - wait_event_interruptible_tty(info->close_wait, + wait_event_interruptible_tty(tty, info->close_wait, !(info->flags & ASYNC_CLOSING)); #ifdef SERIAL_DO_RESTART return ((info->flags & ASYNC_HUP_NOTIFY) ?