]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/tty/synclink.c
drivers/rtc/rtc-twl.c: fix threaded IRQ to use IRQF_ONESHOT
[mirror_ubuntu-zesty-kernel.git] / drivers / tty / synclink.c
index 5ed0daae65647c366dc9948307440795b8eda39b..593d40ad0a6be9b0de161803aa69c9011e2fdab8 100644 (file)
@@ -3338,9 +3338,9 @@ static int block_til_ready(struct tty_struct *tty, struct file * filp,
                        printk("%s(%d):block_til_ready blocking on %s count=%d\n",
                                 __FILE__,__LINE__, tty->driver->name, port->count );
                                 
-               tty_unlock(tty);
+               tty_unlock();
                schedule();
-               tty_lock(tty);
+               tty_lock();
        }
        
        set_current_state(TASK_RUNNING);