Loading drivers/tty/mxser.c +7 −9 Original line number Diff line number Diff line Loading @@ -636,8 +636,7 @@ static int mxser_set_baud(struct tty_struct *tty, long newspd) * This routine is called to set the UART divisor registers to match * the specified baud rate for a serial port. */ static int mxser_change_speed(struct tty_struct *tty, struct ktermios *old_termios) static int mxser_change_speed(struct tty_struct *tty) { struct mxser_port *info = tty->driver_data; unsigned cflag, cval, fcr; Loading Loading @@ -939,7 +938,7 @@ static int mxser_activate(struct tty_port *port, struct tty_struct *tty) /* * and set the speed of the serial port */ mxser_change_speed(tty, NULL); mxser_change_speed(tty); spin_unlock_irqrestore(&info->slock, flags); return 0; Loading Loading @@ -1282,7 +1281,7 @@ static int mxser_set_serial_info(struct tty_struct *tty, if (tty_port_initialized(port)) { if (flags != (port->flags & ASYNC_SPD_MASK)) { spin_lock_irqsave(&info->slock, sl_flags); mxser_change_speed(tty, NULL); mxser_change_speed(tty); spin_unlock_irqrestore(&info->slock, sl_flags); } } else { Loading Loading @@ -1940,7 +1939,7 @@ static void mxser_set_termios(struct tty_struct *tty, struct ktermios *old_termi unsigned long flags; spin_lock_irqsave(&info->slock, flags); mxser_change_speed(tty, old_termios); mxser_change_speed(tty); spin_unlock_irqrestore(&info->slock, flags); if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) { Loading Loading @@ -2369,8 +2368,7 @@ static void mxser_release_ISA_res(struct mxser_board *brd) mxser_release_vector(brd); } static int mxser_initbrd(struct mxser_board *brd, struct pci_dev *pdev) static int mxser_initbrd(struct mxser_board *brd) { struct mxser_port *info; unsigned int i; Loading Loading @@ -2634,7 +2632,7 @@ static int mxser_probe(struct pci_dev *pdev, } /* mxser_initbrd will hook ISR. */ retval = mxser_initbrd(brd, pdev); retval = mxser_initbrd(brd); if (retval) goto err_rel3; Loading Loading @@ -2740,7 +2738,7 @@ static int __init mxser_module_init(void) brd->info->name, ioaddr[b]); /* mxser_initbrd will hook ISR. */ if (mxser_initbrd(brd, NULL) < 0) { if (mxser_initbrd(brd) < 0) { mxser_release_ISA_res(brd); brd->info = NULL; continue; Loading Loading
drivers/tty/mxser.c +7 −9 Original line number Diff line number Diff line Loading @@ -636,8 +636,7 @@ static int mxser_set_baud(struct tty_struct *tty, long newspd) * This routine is called to set the UART divisor registers to match * the specified baud rate for a serial port. */ static int mxser_change_speed(struct tty_struct *tty, struct ktermios *old_termios) static int mxser_change_speed(struct tty_struct *tty) { struct mxser_port *info = tty->driver_data; unsigned cflag, cval, fcr; Loading Loading @@ -939,7 +938,7 @@ static int mxser_activate(struct tty_port *port, struct tty_struct *tty) /* * and set the speed of the serial port */ mxser_change_speed(tty, NULL); mxser_change_speed(tty); spin_unlock_irqrestore(&info->slock, flags); return 0; Loading Loading @@ -1282,7 +1281,7 @@ static int mxser_set_serial_info(struct tty_struct *tty, if (tty_port_initialized(port)) { if (flags != (port->flags & ASYNC_SPD_MASK)) { spin_lock_irqsave(&info->slock, sl_flags); mxser_change_speed(tty, NULL); mxser_change_speed(tty); spin_unlock_irqrestore(&info->slock, sl_flags); } } else { Loading Loading @@ -1940,7 +1939,7 @@ static void mxser_set_termios(struct tty_struct *tty, struct ktermios *old_termi unsigned long flags; spin_lock_irqsave(&info->slock, flags); mxser_change_speed(tty, old_termios); mxser_change_speed(tty); spin_unlock_irqrestore(&info->slock, flags); if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) { Loading Loading @@ -2369,8 +2368,7 @@ static void mxser_release_ISA_res(struct mxser_board *brd) mxser_release_vector(brd); } static int mxser_initbrd(struct mxser_board *brd, struct pci_dev *pdev) static int mxser_initbrd(struct mxser_board *brd) { struct mxser_port *info; unsigned int i; Loading Loading @@ -2634,7 +2632,7 @@ static int mxser_probe(struct pci_dev *pdev, } /* mxser_initbrd will hook ISR. */ retval = mxser_initbrd(brd, pdev); retval = mxser_initbrd(brd); if (retval) goto err_rel3; Loading Loading @@ -2740,7 +2738,7 @@ static int __init mxser_module_init(void) brd->info->name, ioaddr[b]); /* mxser_initbrd will hook ISR. */ if (mxser_initbrd(brd, NULL) < 0) { if (mxser_initbrd(brd) < 0) { mxser_release_ISA_res(brd); brd->info = NULL; continue; Loading