[PATCH] irq-flags: drivers/char: Use the new IRQF_ constants
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: "David S. Miller" <davem@davemloft.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
69ab3912d1
commit
0f2ed4c6ba
@ -1993,7 +1993,7 @@ static int sx_init_board (struct sx_board *board)
|
||||
if(board->irq > 0) {
|
||||
/* fixed irq, probably PCI */
|
||||
if(sx_irqmask & (1 << board->irq)) { /* may we use this irq? */
|
||||
if(request_irq(board->irq, sx_interrupt, SA_SHIRQ | SA_INTERRUPT, "sx", board)) {
|
||||
if(request_irq(board->irq, sx_interrupt, IRQF_SHARED | IRQF_DISABLED, "sx", board)) {
|
||||
printk(KERN_ERR "sx: Cannot allocate irq %d.\n", board->irq);
|
||||
board->irq = 0;
|
||||
}
|
||||
@ -2005,7 +2005,7 @@ static int sx_init_board (struct sx_board *board)
|
||||
int irqmask = sx_irqmask & (IS_SX_BOARD(board) ? SX_ISA_IRQ_MASK : SI2_ISA_IRQ_MASK);
|
||||
for(irqnr = 15; irqnr > 0; irqnr--)
|
||||
if(irqmask & (1 << irqnr))
|
||||
if(! request_irq(irqnr, sx_interrupt, SA_SHIRQ | SA_INTERRUPT, "sx", board))
|
||||
if(! request_irq(irqnr, sx_interrupt, IRQF_SHARED | IRQF_DISABLED, "sx", board))
|
||||
break;
|
||||
if(! irqnr)
|
||||
printk(KERN_ERR "sx: Cannot allocate IRQ.\n");
|
||||
|
Reference in New Issue
Block a user