diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2007-02-10 04:45:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:28 -0500 |
commit | c493edd13d633ba556cd71eeae9d062b6912c55d (patch) | |
tree | 71c3dc9094bd8db8a417393810155e60afa4ba02 /drivers/char | |
parent | 47c85c0db159bb0e5f8f5cb4ae7cc19a5c3359de (diff) |
[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: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/mxser_new.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c index 420d23f50206..8da883340dd6 100644 --- a/drivers/char/mxser_new.c +++ b/drivers/char/mxser_new.c | |||
@@ -2398,13 +2398,9 @@ static int __devinit mxser_initbrd(struct mxser_board *brd, | |||
2398 | outb(inb(info->ioaddr + UART_IER) & 0xf0, | 2398 | outb(inb(info->ioaddr + UART_IER) & 0xf0, |
2399 | info->ioaddr + UART_IER); | 2399 | info->ioaddr + UART_IER); |
2400 | } | 2400 | } |
2401 | /* | ||
2402 | * Allocate the IRQ if necessary | ||
2403 | */ | ||
2404 | 2401 | ||
2405 | retval = request_irq(brd->irq, mxser_interrupt, | 2402 | retval = request_irq(brd->irq, mxser_interrupt, IRQF_SHARED, "mxser", |
2406 | (brd->ports[0].flags & ASYNC_SHARE_IRQ) ? IRQF_SHARED : | 2403 | brd); |
2407 | IRQF_DISABLED, "mxser", brd); | ||
2408 | if (retval) { | 2404 | if (retval) { |
2409 | printk(KERN_ERR "Board %s: Request irq failed, IRQ (%d) may " | 2405 | printk(KERN_ERR "Board %s: Request irq failed, IRQ (%d) may " |
2410 | "conflict with another device.\n", | 2406 | "conflict with another device.\n", |