2001-11-01 14:12:22

by Patrick vd Lageweg

[permalink] [raw]
Subject: [PATCH} Specialix IO8+

Hi Linus, Alan,

This patch makes the IO8+ driver able to share it's interrupt if it's an
PCI card.

Patrick


diff -u -r linux-2.4.13.clean/drivers/char/specialix.c linux-2.4.13.io8/drivers/char/specialix.c
--- linux-2.4.13.clean/drivers/char/specialix.c Thu Nov 1 14:31:49 2001
+++ linux-2.4.13.io8/drivers/char/specialix.c Thu Nov 1 14:41:20 2001
@@ -969,7 +969,10 @@
if (bp->flags & SX_BOARD_ACTIVE)
return 0;

- error = request_irq(bp->irq, sx_interrupt, SA_INTERRUPT, "specialix IO8+", bp);
+ if (bp->flags & SX_BOARD_IS_PCI)
+ error = request_irq(bp->irq, sx_interrupt, SA_INTERRUPT | SA_SHIRQ, "specialix IO8+", bp);
+ else
+ error = request_irq(bp->irq, sx_interrupt, SA_INTERRUPT, "specialix IO8+", bp);

if (error)
return error;