patch-2.4.25 linux-2.4.25/drivers/scsi/qlogicfas.c
Next file: linux-2.4.25/drivers/scsi/sgiwd93.c
Previous file: linux-2.4.25/drivers/scsi/osst_options.h
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/drivers/scsi/qlogicfas.c
- Orig date:
2003-06-13 07:51:36.000000000 -0700
diff -urN linux-2.4.24/drivers/scsi/qlogicfas.c linux-2.4.25/drivers/scsi/qlogicfas.c
@@ -111,10 +111,6 @@
#include <linux/module.h>
-#ifdef PCMCIA
-#undef MODULE
-#endif
-
#include <linux/blk.h> /* to get disk capacity */
#include <linux/kernel.h>
#include <linux/string.h>
@@ -131,6 +127,10 @@
#include "qlogicfas.h"
#include <linux/stat.h>
+#ifdef PCMCIA
+#undef MODULE
+#endif
+
/*----------------------------------------------------------------*/
/* driver state info, local to driver */
static int qbase; /* Port */
@@ -647,7 +647,7 @@
if(request_irq(qlirq, do_ql_ihandl, SA_SHIRQ, "qlogicfas", hreg) < 0)
#endif
{
- scsi_unregister(host);
+ scsi_unregister(hreg);
goto err_release_mem;
}
#endif
@@ -717,7 +717,9 @@
}
MODULE_LICENSE("GPL");
+#ifndef PCMCIA
/* Eventually this will go into an include file, but this will be later */
static Scsi_Host_Template driver_template = QLOGICFAS;
#include "scsi_module.c"
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)