diff options
author | Milton Miller <miltonm@bga.com> | 2005-07-07 20:56:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-07 21:23:39 -0400 |
commit | 64e4da57964c03da9a03087a398cade81b7bb496 (patch) | |
tree | 60c86746fa0a489431c2f2b390e050390da1952c /drivers/char/hvc_console.c | |
parent | 5f6d9c072df162a8601a09e6c63fd0e4f5aecd06 (diff) |
[PATCH] hvc_console: Statically initialize the vtermnos array
Statically initialize the vtermnos array.
Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/hvc_console.c')
-rw-r--r-- | drivers/char/hvc_console.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c index fd7532504252..de849f571ea2 100644 --- a/drivers/char/hvc_console.c +++ b/drivers/char/hvc_console.c | |||
@@ -144,8 +144,8 @@ struct hvc_struct *hvc_get_by_index(int index) | |||
144 | * console interfaces but can still be used as a tty device. This has to be | 144 | * console interfaces but can still be used as a tty device. This has to be |
145 | * static because kmalloc will not work during early console init. | 145 | * static because kmalloc will not work during early console init. |
146 | */ | 146 | */ |
147 | static uint32_t vtermnos[MAX_NR_HVC_CONSOLES]; | 147 | static uint32_t vtermnos[MAX_NR_HVC_CONSOLES] = |
148 | 148 | {[0 ... MAX_NR_HVC_CONSOLES - 1] = -1}; | |
149 | 149 | ||
150 | /* | 150 | /* |
151 | * Console APIs, NOT TTY. These APIs are available immediately when | 151 | * Console APIs, NOT TTY. These APIs are available immediately when |
@@ -213,10 +213,6 @@ struct console hvc_con_driver = { | |||
213 | /* Early console initialization. Preceeds driver initialization. */ | 213 | /* Early console initialization. Preceeds driver initialization. */ |
214 | static int __init hvc_console_init(void) | 214 | static int __init hvc_console_init(void) |
215 | { | 215 | { |
216 | int i; | ||
217 | |||
218 | for (i=0; i<MAX_NR_HVC_CONSOLES; i++) | ||
219 | vtermnos[i] = -1; | ||
220 | hvc_find_vtys(); | 216 | hvc_find_vtys(); |
221 | register_console(&hvc_con_driver); | 217 | register_console(&hvc_con_driver); |
222 | return 0; | 218 | return 0; |