]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
TTY: crisv10, initialize tty_port
authorJiri Slaby <jslaby@suse.cz>
Mon, 2 Apr 2012 11:53:46 +0000 (13:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Apr 2012 18:14:49 +0000 (11:14 -0700)
The tty_port used in the driver is left uninitialized. Add the
initialization there.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Mikael Starvik <starvik@axis.com>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: linux-cris-kernel@axis.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/crisv10.c

index 004ee2e9003acf55600b41d7cc330579a4488e52..80b6b1b1f7257d3b1da80f1b58523e7465bdb36b 100644 (file)
@@ -4462,6 +4462,7 @@ static int __init rs_init(void)
                                info->enabled = 0;
                        }
                }
+               tty_port_init(&info->port);
                info->uses_dma_in = 0;
                info->uses_dma_out = 0;
                info->line = i;