diff options
Diffstat (limited to 'drivers/scsi/sun3_scsi.c')
-rw-r--r-- | drivers/scsi/sun3_scsi.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/scsi/sun3_scsi.c b/drivers/scsi/sun3_scsi.c index 613f5880d135..baf7328de956 100644 --- a/drivers/scsi/sun3_scsi.c +++ b/drivers/scsi/sun3_scsi.c | |||
@@ -70,6 +70,12 @@ | |||
70 | #include <asm/idprom.h> | 70 | #include <asm/idprom.h> |
71 | #include <asm/machines.h> | 71 | #include <asm/machines.h> |
72 | 72 | ||
73 | #define NDEBUG 0 | ||
74 | |||
75 | #define NDEBUG_ABORT 0x00100000 | ||
76 | #define NDEBUG_TAGS 0x00200000 | ||
77 | #define NDEBUG_MERGING 0x00400000 | ||
78 | |||
73 | /* dma on! */ | 79 | /* dma on! */ |
74 | #define REAL_DMA | 80 | #define REAL_DMA |
75 | 81 | ||
@@ -86,8 +92,6 @@ static void NCR5380_print(struct Scsi_Host *instance); | |||
86 | /*#define RESET_BOOT */ | 92 | /*#define RESET_BOOT */ |
87 | #define DRIVER_SETUP | 93 | #define DRIVER_SETUP |
88 | 94 | ||
89 | #define NDEBUG 0 | ||
90 | |||
91 | /* | 95 | /* |
92 | * BUG can be used to trigger a strange code-size related hang on 2.1 kernels | 96 | * BUG can be used to trigger a strange code-size related hang on 2.1 kernels |
93 | */ | 97 | */ |
@@ -195,7 +199,7 @@ static struct Scsi_Host *default_instance; | |||
195 | * | 199 | * |
196 | */ | 200 | */ |
197 | 201 | ||
198 | int sun3scsi_detect(struct scsi_host_template * tpnt) | 202 | int __init sun3scsi_detect(struct scsi_host_template * tpnt) |
199 | { | 203 | { |
200 | unsigned long ioaddr; | 204 | unsigned long ioaddr; |
201 | static int called = 0; | 205 | static int called = 0; |
@@ -314,6 +318,7 @@ int sun3scsi_release (struct Scsi_Host *shpnt) | |||
314 | 318 | ||
315 | iounmap((void *)sun3_scsi_regp); | 319 | iounmap((void *)sun3_scsi_regp); |
316 | 320 | ||
321 | NCR5380_exit(shpnt); | ||
317 | return 0; | 322 | return 0; |
318 | } | 323 | } |
319 | 324 | ||