diff options
Diffstat (limited to 'drivers/tty/hvc/hvcs.c')
-rw-r--r-- | drivers/tty/hvc/hvcs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c index 4c8b66546930..b9040bec36bd 100644 --- a/drivers/tty/hvc/hvcs.c +++ b/drivers/tty/hvc/hvcs.c | |||
@@ -1057,7 +1057,7 @@ static int hvcs_enable_device(struct hvcs_struct *hvcsd, uint32_t unit_address, | |||
1057 | * the conn was registered and now. | 1057 | * the conn was registered and now. |
1058 | */ | 1058 | */ |
1059 | if (!(rc = request_irq(irq, &hvcs_handle_interrupt, | 1059 | if (!(rc = request_irq(irq, &hvcs_handle_interrupt, |
1060 | IRQF_DISABLED, "ibmhvcs", hvcsd))) { | 1060 | 0, "ibmhvcs", hvcsd))) { |
1061 | /* | 1061 | /* |
1062 | * It is possible the vty-server was removed after the irq was | 1062 | * It is possible the vty-server was removed after the irq was |
1063 | * requested but before we have time to enable interrupts. | 1063 | * requested but before we have time to enable interrupts. |
@@ -1237,7 +1237,7 @@ static void hvcs_close(struct tty_struct *tty, struct file *filp) | |||
1237 | irq = hvcsd->vdev->irq; | 1237 | irq = hvcsd->vdev->irq; |
1238 | spin_unlock_irqrestore(&hvcsd->lock, flags); | 1238 | spin_unlock_irqrestore(&hvcsd->lock, flags); |
1239 | 1239 | ||
1240 | tty_wait_until_sent(tty, HVCS_CLOSE_WAIT); | 1240 | tty_wait_until_sent_from_close(tty, HVCS_CLOSE_WAIT); |
1241 | 1241 | ||
1242 | /* | 1242 | /* |
1243 | * This line is important because it tells hvcs_open that this | 1243 | * This line is important because it tells hvcs_open that this |
@@ -1532,7 +1532,7 @@ static int __devinit hvcs_initialize(void) | |||
1532 | goto register_fail; | 1532 | goto register_fail; |
1533 | } | 1533 | } |
1534 | 1534 | ||
1535 | hvcs_pi_buff = kmalloc(PAGE_SIZE, GFP_KERNEL); | 1535 | hvcs_pi_buff = (unsigned long *) __get_free_page(GFP_KERNEL); |
1536 | if (!hvcs_pi_buff) { | 1536 | if (!hvcs_pi_buff) { |
1537 | rc = -ENOMEM; | 1537 | rc = -ENOMEM; |
1538 | goto buff_alloc_fail; | 1538 | goto buff_alloc_fail; |
@@ -1548,7 +1548,7 @@ static int __devinit hvcs_initialize(void) | |||
1548 | return 0; | 1548 | return 0; |
1549 | 1549 | ||
1550 | kthread_fail: | 1550 | kthread_fail: |
1551 | kfree(hvcs_pi_buff); | 1551 | free_page((unsigned long)hvcs_pi_buff); |
1552 | buff_alloc_fail: | 1552 | buff_alloc_fail: |
1553 | tty_unregister_driver(hvcs_tty_driver); | 1553 | tty_unregister_driver(hvcs_tty_driver); |
1554 | register_fail: | 1554 | register_fail: |
@@ -1597,7 +1597,7 @@ static void __exit hvcs_module_exit(void) | |||
1597 | kthread_stop(hvcs_task); | 1597 | kthread_stop(hvcs_task); |
1598 | 1598 | ||
1599 | spin_lock(&hvcs_pi_lock); | 1599 | spin_lock(&hvcs_pi_lock); |
1600 | kfree(hvcs_pi_buff); | 1600 | free_page((unsigned long)hvcs_pi_buff); |
1601 | hvcs_pi_buff = NULL; | 1601 | hvcs_pi_buff = NULL; |
1602 | spin_unlock(&hvcs_pi_lock); | 1602 | spin_unlock(&hvcs_pi_lock); |
1603 | 1603 | ||