diff options
Diffstat (limited to 'drivers/tty/hvc/hvc_irq.c')
-rw-r--r-- | drivers/tty/hvc/hvc_irq.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/tty/hvc/hvc_irq.c b/drivers/tty/hvc/hvc_irq.c index c9adb0559f61..bc7a96874637 100644 --- a/drivers/tty/hvc/hvc_irq.c +++ b/drivers/tty/hvc/hvc_irq.c | |||
@@ -14,6 +14,11 @@ static irqreturn_t hvc_handle_interrupt(int irq, void *dev_instance) | |||
14 | /* if hvc_poll request a repoll, then kick the hvcd thread */ | 14 | /* if hvc_poll request a repoll, then kick the hvcd thread */ |
15 | if (hvc_poll(dev_instance)) | 15 | if (hvc_poll(dev_instance)) |
16 | hvc_kick(); | 16 | hvc_kick(); |
17 | |||
18 | /* | ||
19 | * We're safe to always return IRQ_HANDLED as the hvcd thread will | ||
20 | * iterate through each hvc_struct. | ||
21 | */ | ||
17 | return IRQ_HANDLED; | 22 | return IRQ_HANDLED; |
18 | } | 23 | } |
19 | 24 | ||
@@ -28,8 +33,8 @@ int notifier_add_irq(struct hvc_struct *hp, int irq) | |||
28 | hp->irq_requested = 0; | 33 | hp->irq_requested = 0; |
29 | return 0; | 34 | return 0; |
30 | } | 35 | } |
31 | rc = request_irq(irq, hvc_handle_interrupt, 0, | 36 | rc = request_irq(irq, hvc_handle_interrupt, hp->flags, |
32 | "hvc_console", hp); | 37 | "hvc_console", hp); |
33 | if (!rc) | 38 | if (!rc) |
34 | hp->irq_requested = 1; | 39 | hp->irq_requested = 1; |
35 | return rc; | 40 | return rc; |