提交 c493edd1 编写于 作者: J Jiri Slaby 提交者: Linus Torvalds

[PATCH] Char: mxser_new, clean request_irq call

We always set ASYNC_SHARE_IRQ, so do not test against this flag and request
shared irq directly.  Also remove nonsense comment.
Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 47c85c0d
...@@ -2398,13 +2398,9 @@ static int __devinit mxser_initbrd(struct mxser_board *brd, ...@@ -2398,13 +2398,9 @@ static int __devinit mxser_initbrd(struct mxser_board *brd,
outb(inb(info->ioaddr + UART_IER) & 0xf0, outb(inb(info->ioaddr + UART_IER) & 0xf0,
info->ioaddr + UART_IER); info->ioaddr + UART_IER);
} }
/*
* Allocate the IRQ if necessary
*/
retval = request_irq(brd->irq, mxser_interrupt, retval = request_irq(brd->irq, mxser_interrupt, IRQF_SHARED, "mxser",
(brd->ports[0].flags & ASYNC_SHARE_IRQ) ? IRQF_SHARED : brd);
IRQF_DISABLED, "mxser", brd);
if (retval) { if (retval) {
printk(KERN_ERR "Board %s: Request irq failed, IRQ (%d) may " printk(KERN_ERR "Board %s: Request irq failed, IRQ (%d) may "
"conflict with another device.\n", "conflict with another device.\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册