diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-01-06 03:18:55 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:33:46 -0500 |
commit | 1f80171e81ed0d08dcdb6efe239d7b929aef498f (patch) | |
tree | f6f72268ddee265b46ceb698cdff6daa7cba6250 /arch/um/drivers/ssl.c | |
parent | 418e55d49b0ec7d2e7a033f2dd083f5b2ab7d119 (diff) |
[PATCH] uml: move console configuration
This patch changes when console devices are configured in order to prepare the
ground for the next patch.
parse_chan_pair is now done earlier, when initcalls are run, rather than when
the device is opened.
When a host device disappears, the channel list is closed, but not freed.
This is required by the previous change. line_config now takes the options
structure as an argument, and line_open doesn't.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/drivers/ssl.c')
-rw-r--r-- | arch/um/drivers/ssl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/drivers/ssl.c b/arch/um/drivers/ssl.c index e1895d9babbe..6823dc5d665c 100644 --- a/arch/um/drivers/ssl.c +++ b/arch/um/drivers/ssl.c | |||
@@ -84,7 +84,7 @@ static struct lines lines = LINES_INIT(NR_PORTS); | |||
84 | 84 | ||
85 | static int ssl_config(char *str) | 85 | static int ssl_config(char *str) |
86 | { | 86 | { |
87 | return line_config(serial_lines, ARRAY_SIZE(serial_lines), str); | 87 | return line_config(serial_lines, ARRAY_SIZE(serial_lines), str, &opts); |
88 | } | 88 | } |
89 | 89 | ||
90 | static int ssl_get_config(char *dev, char *str, int size, char **error_out) | 90 | static int ssl_get_config(char *dev, char *str, int size, char **error_out) |
@@ -100,7 +100,7 @@ static int ssl_remove(int n) | |||
100 | 100 | ||
101 | int ssl_open(struct tty_struct *tty, struct file *filp) | 101 | int ssl_open(struct tty_struct *tty, struct file *filp) |
102 | { | 102 | { |
103 | return line_open(serial_lines, tty, &opts); | 103 | return line_open(serial_lines, tty); |
104 | } | 104 | } |
105 | 105 | ||
106 | #if 0 | 106 | #if 0 |
@@ -202,7 +202,7 @@ int ssl_init(void) | |||
202 | serial_lines, | 202 | serial_lines, |
203 | ARRAY_SIZE(serial_lines)); | 203 | ARRAY_SIZE(serial_lines)); |
204 | 204 | ||
205 | lines_init(serial_lines, ARRAY_SIZE(serial_lines)); | 205 | lines_init(serial_lines, ARRAY_SIZE(serial_lines), &opts); |
206 | 206 | ||
207 | new_title = add_xterm_umid(opts.xterm_title); | 207 | new_title = add_xterm_umid(opts.xterm_title); |
208 | if (new_title != NULL) | 208 | if (new_title != NULL) |