]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/tty/pty.c
tty: cleanup checkpatch warning in pty.c
[karo-tx-linux.git] / drivers / tty / pty.c
index be6a373601b783677b876a512854edcfb28f3732..4ec11f326d6daa822897060bb376694952f82617 100644 (file)
@@ -55,9 +55,9 @@ static void pty_close(struct tty_struct *tty, struct file *filp)
                set_bit(TTY_OTHER_CLOSED, &tty->flags);
 #ifdef CONFIG_UNIX98_PTYS
                if (tty->driver == ptm_driver) {
-                       mutex_lock(&devpts_mutex);
+                       mutex_lock(&devpts_mutex);
                        devpts_pty_kill(tty->link->driver_data);
-                       mutex_unlock(&devpts_mutex);
+                       mutex_unlock(&devpts_mutex);
                }
 #endif
                tty_unlock(tty);
@@ -120,10 +120,10 @@ static int pty_write(struct tty_struct *tty, const unsigned char *buf, int c)
 
        if (c > 0) {
                /* Stuff the data into the input queue of the other end */
-               c = tty_insert_flip_string(to, buf, c);
+               c = tty_insert_flip_string(to->port, buf, c);
                /* And shovel */
                if (c) {
-                       tty_flip_buffer_push(to);
+                       tty_flip_buffer_push(to->port);
                        tty_wakeup(tty);
                }
        }
@@ -661,7 +661,7 @@ static const struct tty_operations pty_unix98_ops = {
  *     Allocate a unix98 pty master device from the ptmx driver.
  *
  *     Locking: tty_mutex protects the init_dev work. tty->count should
- *             protect the rest.
+ *             protect the rest.
  *             allocated_ptys_lock handles the list of free pty numbers
  */
 
@@ -795,7 +795,7 @@ static void __init unix98_pty_init(void)
        cdev_init(&ptmx_cdev, &ptmx_fops);
        if (cdev_add(&ptmx_cdev, MKDEV(TTYAUX_MAJOR, 2), 1) ||
            register_chrdev_region(MKDEV(TTYAUX_MAJOR, 2), 1, "/dev/ptmx") < 0)
-               panic("Couldn't register /dev/ptmx driver\n");
+               panic("Couldn't register /dev/ptmx driver");
        device_create(tty_class, NULL, MKDEV(TTYAUX_MAJOR, 2), NULL, "ptmx");
 }