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/stdio_console.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/stdio_console.c')
-rw-r--r-- | arch/um/drivers/stdio_console.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/drivers/stdio_console.c b/arch/um/drivers/stdio_console.c index 72000d3a19ee..6d4edda9b510 100644 --- a/arch/um/drivers/stdio_console.c +++ b/arch/um/drivers/stdio_console.c | |||
@@ -91,7 +91,7 @@ struct line vts[MAX_TTYS] = { LINE_INIT(CONFIG_CON_ZERO_CHAN, &driver), | |||
91 | 91 | ||
92 | static int con_config(char *str) | 92 | static int con_config(char *str) |
93 | { | 93 | { |
94 | return line_config(vts, ARRAY_SIZE(vts), str); | 94 | return line_config(vts, ARRAY_SIZE(vts), str, &opts); |
95 | } | 95 | } |
96 | 96 | ||
97 | static int con_get_config(char *dev, char *str, int size, char **error_out) | 97 | static int con_get_config(char *dev, char *str, int size, char **error_out) |
@@ -106,7 +106,7 @@ static int con_remove(int n) | |||
106 | 106 | ||
107 | static int con_open(struct tty_struct *tty, struct file *filp) | 107 | static int con_open(struct tty_struct *tty, struct file *filp) |
108 | { | 108 | { |
109 | return line_open(vts, tty, &opts); | 109 | return line_open(vts, tty); |
110 | } | 110 | } |
111 | 111 | ||
112 | static int con_init_done = 0; | 112 | static int con_init_done = 0; |
@@ -169,7 +169,7 @@ int stdio_init(void) | |||
169 | return -1; | 169 | return -1; |
170 | printk(KERN_INFO "Initialized stdio console driver\n"); | 170 | printk(KERN_INFO "Initialized stdio console driver\n"); |
171 | 171 | ||
172 | lines_init(vts, ARRAY_SIZE(vts)); | 172 | lines_init(vts, ARRAY_SIZE(vts), &opts); |
173 | 173 | ||
174 | new_title = add_xterm_umid(opts.xterm_title); | 174 | new_title = add_xterm_umid(opts.xterm_title); |
175 | if(new_title != NULL) | 175 | if(new_title != NULL) |