diff options
Diffstat (limited to 'drivers/char/hvsi.c')
-rw-r--r-- | drivers/char/hvsi.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/char/hvsi.c b/drivers/char/hvsi.c index a9522189fc9e..56612a2dca6b 100644 --- a/drivers/char/hvsi.c +++ b/drivers/char/hvsi.c | |||
@@ -1154,7 +1154,6 @@ static int __init hvsi_init(void) | |||
1154 | return -ENOMEM; | 1154 | return -ENOMEM; |
1155 | 1155 | ||
1156 | hvsi_driver->owner = THIS_MODULE; | 1156 | hvsi_driver->owner = THIS_MODULE; |
1157 | hvsi_driver->devfs_name = "hvsi/"; | ||
1158 | hvsi_driver->driver_name = "hvsi"; | 1157 | hvsi_driver->driver_name = "hvsi"; |
1159 | hvsi_driver->name = "hvsi"; | 1158 | hvsi_driver->name = "hvsi"; |
1160 | hvsi_driver->major = HVSI_MAJOR; | 1159 | hvsi_driver->major = HVSI_MAJOR; |
@@ -1169,7 +1168,7 @@ static int __init hvsi_init(void) | |||
1169 | struct hvsi_struct *hp = &hvsi_ports[i]; | 1168 | struct hvsi_struct *hp = &hvsi_ports[i]; |
1170 | int ret = 1; | 1169 | int ret = 1; |
1171 | 1170 | ||
1172 | ret = request_irq(hp->virq, hvsi_interrupt, SA_INTERRUPT, "hvsi", hp); | 1171 | ret = request_irq(hp->virq, hvsi_interrupt, IRQF_DISABLED, "hvsi", hp); |
1173 | if (ret) | 1172 | if (ret) |
1174 | printk(KERN_ERR "HVSI: couldn't reserve irq 0x%x (error %i)\n", | 1173 | printk(KERN_ERR "HVSI: couldn't reserve irq 0x%x (error %i)\n", |
1175 | hp->virq, ret); | 1174 | hp->virq, ret); |
@@ -1179,7 +1178,7 @@ static int __init hvsi_init(void) | |||
1179 | if (tty_register_driver(hvsi_driver)) | 1178 | if (tty_register_driver(hvsi_driver)) |
1180 | panic("Couldn't register hvsi console driver\n"); | 1179 | panic("Couldn't register hvsi console driver\n"); |
1181 | 1180 | ||
1182 | printk(KERN_INFO "HVSI: registered %i devices\n", hvsi_count); | 1181 | printk(KERN_DEBUG "HVSI: registered %i devices\n", hvsi_count); |
1183 | 1182 | ||
1184 | return 0; | 1183 | return 0; |
1185 | } | 1184 | } |
@@ -1300,13 +1299,12 @@ static int __init hvsi_console_init(void) | |||
1300 | hp->inbuf_end = hp->inbuf; | 1299 | hp->inbuf_end = hp->inbuf; |
1301 | hp->state = HVSI_CLOSED; | 1300 | hp->state = HVSI_CLOSED; |
1302 | hp->vtermno = *vtermno; | 1301 | hp->vtermno = *vtermno; |
1303 | hp->virq = virt_irq_create_mapping(irq[0]); | 1302 | hp->virq = irq_create_mapping(NULL, irq[0], 0); |
1304 | if (hp->virq == NO_IRQ) { | 1303 | if (hp->virq == NO_IRQ) { |
1305 | printk(KERN_ERR "%s: couldn't create irq mapping for 0x%x\n", | 1304 | printk(KERN_ERR "%s: couldn't create irq mapping for 0x%x\n", |
1306 | __FUNCTION__, hp->virq); | 1305 | __FUNCTION__, irq[0]); |
1307 | continue; | 1306 | continue; |
1308 | } else | 1307 | } |
1309 | hp->virq = irq_offset_up(hp->virq); | ||
1310 | 1308 | ||
1311 | hvsi_count++; | 1309 | hvsi_count++; |
1312 | } | 1310 | } |