diff options
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; |