patch-2.1.25 linux/drivers/scsi/wd7000.c

Next file: linux/fs/proc/procfs_syms.c
Previous file: linux/drivers/scsi/scsi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.24/linux/drivers/scsi/wd7000.c linux/drivers/scsi/wd7000.c
@@ -143,6 +143,7 @@
 #include <asm/system.h>
 #include <asm/dma.h>
 #include <asm/io.h>
+#include <asm/irq.h>
 #include <linux/ioport.h>
 #include <linux/proc_fs.h>
 #include <linux/blk.h>
@@ -215,7 +216,7 @@
  * Note that if SA_INTERRUPT is not used, wd7000_intr_handle must be
  * changed to pick up the IRQ level correctly.
  */
-Adapter *irq2host[16] = {NULL};	/* Possible IRQs are 0-15 */
+static Adapter *irq2host[NR_IRQS] = {NULL};
 
 /*
  * (linear) base address for ROM BIOS

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