]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/tty/serial/ioc4_serial.c
TTY: switch tty_buffer_request_room to tty_port
[karo-tx-linux.git] / drivers / tty / serial / ioc4_serial.c
index 3e7da10cebba3525c43f5f63e383e4bca61deeee..710ce87ffbebd61e256c17df345bb1a85f5df8a3 100644 (file)
@@ -2356,7 +2356,7 @@ static void receive_chars(struct uart_port *the_port)
        spin_lock_irqsave(&the_port->lock, pflags);
        tty = state->port.tty;
 
-       request_count = tty_buffer_request_room(tty, IOC4_MAX_CHARS);
+       request_count = tty_buffer_request_room(&state->port, IOC4_MAX_CHARS);
 
        if (request_count > 0) {
                icount = &the_port->icount;
@@ -2883,6 +2883,7 @@ ioc4_serial_attach_one(struct ioc4_driver_data *idd)
        /* error exits that give back resources */
 out5:
        ioc4_serial_remove_one(idd);
+       return ret;
 out4:
        kfree(soft);
 out3: