summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/crisv10.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-04-02 13:53:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-09 11:14:49 -0700
commit953756e2fb02880d6d6b7d961540a064c6df9f97 (patch)
tree4490c42bd8901e3f6dc20f616899bc7d34753e94 /drivers/tty/serial/crisv10.c
parent37f00f62affe2ff673a9d5e93fcab154b0e8406c (diff)
downloadlwn-953756e2fb02880d6d6b7d961540a064c6df9f97.tar.gz
lwn-953756e2fb02880d6d6b7d961540a064c6df9f97.zip
TTY: crisv10, initialize tty_port
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>
Diffstat (limited to 'drivers/tty/serial/crisv10.c')
-rw-r--r--drivers/tty/serial/crisv10.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/crisv10.c b/drivers/tty/serial/crisv10.c
index 004ee2e9003a..80b6b1b1f725 100644
--- a/drivers/tty/serial/crisv10.c
+++ b/drivers/tty/serial/crisv10.c
@@ -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;