patch-2.1.96 linux/drivers/scsi/NCR5380.c

Next file: linux/drivers/scsi/NCR5380.h
Previous file: linux/drivers/scsi/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.95/linux/drivers/scsi/NCR5380.c linux/drivers/scsi/NCR5380.c
@@ -1279,6 +1279,9 @@
 }
 
 #ifndef DONT_USE_INTR
+#include <linux/blk.h>
+#include <asm/spinlock.h>
+
 /*
  * Function : void NCR5380_intr (int irq)
  * 
@@ -1390,6 +1393,16 @@
 	    } /* if (instance->irq == irq) */
     } while (!done);
 }
+
+
+static void do_NCR5380_intr (int irq, void *dev_id, struct pt_regs * regs) {
+    unsigned long flags;
+
+    spin_lock_irqsave(&io_request_lock, flags);
+    NCR5380_intr(irq, dev_id, regs);
+    spin_unlock_irqrestore(&io_request_lock, flags);
+}
+
 #endif
 
 #ifdef NCR5380_STATS

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov