aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/hvc_console.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/hvc_console.c')
-rw-r--r--drivers/char/hvc_console.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c
index 31980994fead..fd7532504252 100644
--- a/drivers/char/hvc_console.c
+++ b/drivers/char/hvc_console.c
@@ -146,8 +146,6 @@ struct hvc_struct *hvc_get_by_index(int index)
146 */ 146 */
147static uint32_t vtermnos[MAX_NR_HVC_CONSOLES]; 147static uint32_t vtermnos[MAX_NR_HVC_CONSOLES];
148 148
149/* Used for accounting purposes */
150static int num_vterms = 0;
151 149
152/* 150/*
153 * Console APIs, NOT TTY. These APIs are available immediately when 151 * Console APIs, NOT TTY. These APIs are available immediately when
@@ -219,7 +217,7 @@ static int __init hvc_console_init(void)
219 217
220 for (i=0; i<MAX_NR_HVC_CONSOLES; i++) 218 for (i=0; i<MAX_NR_HVC_CONSOLES; i++)
221 vtermnos[i] = -1; 219 vtermnos[i] = -1;
222 num_vterms = hvc_find_vtys(); 220 hvc_find_vtys();
223 register_console(&hvc_con_driver); 221 register_console(&hvc_con_driver);
224 return 0; 222 return 0;
225} 223}
@@ -651,7 +649,6 @@ int khvcd(void *unused)
651 if (cpus_empty(cpus_in_xmon)) { 649 if (cpus_empty(cpus_in_xmon)) {
652 spin_lock(&hvc_structs_lock); 650 spin_lock(&hvc_structs_lock);
653 list_for_each_entry(hp, &hvc_structs, next) { 651 list_for_each_entry(hp, &hvc_structs, next) {
654 /*hp = list_entry(node, struct hvc_struct, * next); */
655 poll_mask |= hvc_poll(hp); 652 poll_mask |= hvc_poll(hp);
656 } 653 }
657 spin_unlock(&hvc_structs_lock); 654 spin_unlock(&hvc_structs_lock);
@@ -811,9 +808,8 @@ int __init hvc_init(void)
811{ 808{
812 int rc; 809 int rc;
813 810
814 /* We need more than num_vterms adapters due to hotplug additions. */ 811 /* We need more than hvc_count adapters due to hotplug additions. */
815 hvc_driver = alloc_tty_driver(HVC_ALLOC_TTY_ADAPTERS); 812 hvc_driver = alloc_tty_driver(HVC_ALLOC_TTY_ADAPTERS);
816 /* hvc_driver = alloc_tty_driver(num_vterms); */
817 if (!hvc_driver) 813 if (!hvc_driver)
818 return -ENOMEM; 814 return -ENOMEM;
819 815