patch-2.1.37 linux/drivers/scsi/a2091.c
Next file: linux/drivers/scsi/a3000.c
Previous file: linux/drivers/scsi/README.ncr53c8xx
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Mon May 12 10:35:42 1997
- Orig file:
v2.1.36/linux/drivers/scsi/a2091.c
- Orig date:
Wed Apr 23 19:01:21 1997
diff -u --recursive --new-file v2.1.36/linux/drivers/scsi/a2091.c linux/drivers/scsi/a2091.c
@@ -3,6 +3,7 @@
#include <linux/blk.h>
#include <linux/sched.h>
#include <linux/version.h>
+#include <linux/init.h>
#include <asm/setup.h>
#include <asm/page.h>
@@ -190,7 +191,7 @@
static int num_a2091 = 0;
-int a2091_detect(Scsi_Host_Template *tpnt)
+__initfunc(int a2091_detect(Scsi_Host_Template *tpnt))
{
static unsigned char called = 0;
struct Scsi_Host *instance;
@@ -243,13 +244,11 @@
int a2091_release(struct Scsi_Host *instance)
{
#ifdef MODULE
-DMA(instance)->CNTR = 0;
-zorro_unconfig_board(instance->unique_id, 0);
-if (--num_a2091 == 0)
- free_irq(IRQ_AMIGA_PORTS, a2091_intr);
-wd33c93_release();
+ DMA(instance)->CNTR = 0;
+ zorro_unconfig_board(instance->unique_id, 0);
+ if (--num_a2091 == 0)
+ free_irq(IRQ_AMIGA_PORTS, a2091_intr);
+ wd33c93_release();
#endif
-return 1;
+ return 1;
}
-
-
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov