From: Anthony PERARD Date: Tue, 26 Feb 2013 17:57:02 +0000 (+0000) Subject: hvc: clear some status flags. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=HEAD;p=people%2Faperard%2Flinux-arndale.git hvc: clear some status flags. without this, the request_irq failed with -22 (hvc_open). --- diff --git a/drivers/tty/hvc/hvc_irq.c b/drivers/tty/hvc/hvc_irq.c index c9adb0559f61c..a96d37f263ac6 100644 --- a/drivers/tty/hvc/hvc_irq.c +++ b/drivers/tty/hvc/hvc_irq.c @@ -6,6 +6,7 @@ */ #include +#include #include "hvc_console.h" @@ -28,6 +29,7 @@ int notifier_add_irq(struct hvc_struct *hp, int irq) hp->irq_requested = 0; return 0; } + irq_clear_status_flags(irq, IRQ_NOREQUEST|IRQ_NOAUTOEN); rc = request_irq(irq, hvc_handle_interrupt, 0, "hvc_console", hp); if (!rc)