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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c
index a76d2c40dd5e..cc2cd46bedc6 100644
--- a/drivers/char/hvc_console.c
+++ b/drivers/char/hvc_console.c
@@ -38,6 +38,7 @@
38#include <linux/sched.h> 38#include <linux/sched.h>
39#include <linux/spinlock.h> 39#include <linux/spinlock.h>
40#include <linux/delay.h> 40#include <linux/delay.h>
41#include <linux/freezer.h>
41 42
42#include <asm/uaccess.h> 43#include <asm/uaccess.h>
43 44
@@ -294,7 +295,7 @@ static int hvc_poll(struct hvc_struct *hp);
294 * NOTE: This API isn't used if the console adapter doesn't support interrupts. 295 * NOTE: This API isn't used if the console adapter doesn't support interrupts.
295 * In this case the console is poll driven. 296 * In this case the console is poll driven.
296 */ 297 */
297static irqreturn_t hvc_handle_interrupt(int irq, void *dev_instance, struct pt_regs *regs) 298static irqreturn_t hvc_handle_interrupt(int irq, void *dev_instance)
298{ 299{
299 /* if hvc_poll request a repoll, then kick the hvcd thread */ 300 /* if hvc_poll request a repoll, then kick the hvcd thread */
300 if (hvc_poll(dev_instance)) 301 if (hvc_poll(dev_instance))
@@ -621,7 +622,7 @@ static int hvc_poll(struct hvc_struct *hp)
621 sysrq_pressed = 1; 622 sysrq_pressed = 1;
622 continue; 623 continue;
623 } else if (sysrq_pressed) { 624 } else if (sysrq_pressed) {
624 handle_sysrq(buf[i], NULL, tty); 625 handle_sysrq(buf[i], tty);
625 sysrq_pressed = 0; 626 sysrq_pressed = 0;
626 continue; 627 continue;
627 } 628 }
@@ -696,7 +697,7 @@ int khvcd(void *unused)
696 return 0; 697 return 0;
697} 698}
698 699
699static struct tty_operations hvc_ops = { 700static const struct tty_operations hvc_ops = {
700 .open = hvc_open, 701 .open = hvc_open,
701 .close = hvc_close, 702 .close = hvc_close,
702 .write = hvc_write, 703 .write = hvc_write,