summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/dtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/dtc.c')
-rw-r--r--drivers/scsi/dtc.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/scsi/dtc.c b/drivers/scsi/dtc.c
index 99164d60df13..38325f979b90 100644
--- a/drivers/scsi/dtc.c
+++ b/drivers/scsi/dtc.c
@@ -205,9 +205,8 @@ static int __init dtc_detect(struct scsi_host_template * tpnt)
205 addr = 0; 205 addr = 0;
206 } else 206 } else
207 for (; !addr && (current_base < NO_BASES); ++current_base) { 207 for (; !addr && (current_base < NO_BASES); ++current_base) {
208#if (DTCDEBUG & DTCDEBUG_INIT) 208 dprintk(NDEBUG_INIT, "dtc: probing address 0x%08x\n",
209 printk(KERN_DEBUG "scsi-dtc : probing address %08x\n", bases[current_base].address); 209 (unsigned int)bases[current_base].address);
210#endif
211 if (bases[current_base].noauto) 210 if (bases[current_base].noauto)
212 continue; 211 continue;
213 base = ioremap(bases[current_base].address, 0x2000); 212 base = ioremap(bases[current_base].address, 0x2000);
@@ -216,18 +215,14 @@ static int __init dtc_detect(struct scsi_host_template * tpnt)
216 for (sig = 0; sig < NO_SIGNATURES; ++sig) { 215 for (sig = 0; sig < NO_SIGNATURES; ++sig) {
217 if (check_signature(base + signatures[sig].offset, signatures[sig].string, strlen(signatures[sig].string))) { 216 if (check_signature(base + signatures[sig].offset, signatures[sig].string, strlen(signatures[sig].string))) {
218 addr = bases[current_base].address; 217 addr = bases[current_base].address;
219#if (DTCDEBUG & DTCDEBUG_INIT) 218 dprintk(NDEBUG_INIT, "dtc: detected board\n");
220 printk(KERN_DEBUG "scsi-dtc : detected board.\n");
221#endif
222 goto found; 219 goto found;
223 } 220 }
224 } 221 }
225 iounmap(base); 222 iounmap(base);
226 } 223 }
227 224
228#if defined(DTCDEBUG) && (DTCDEBUG & DTCDEBUG_INIT) 225 dprintk(NDEBUG_INIT, "dtc: addr = 0x%08x\n", addr);
229 printk(KERN_DEBUG "scsi-dtc : base = %08x\n", addr);
230#endif
231 226
232 if (!addr) 227 if (!addr)
233 break; 228 break;
@@ -271,9 +266,8 @@ found:
271 printk(KERN_WARNING "scsi%d : interrupts not used. Might as well not jumper it.\n", instance->host_no); 266 printk(KERN_WARNING "scsi%d : interrupts not used. Might as well not jumper it.\n", instance->host_no);
272 instance->irq = NO_IRQ; 267 instance->irq = NO_IRQ;
273#endif 268#endif
274#if defined(DTCDEBUG) && (DTCDEBUG & DTCDEBUG_INIT) 269 dprintk(NDEBUG_INIT, "scsi%d : irq = %d\n",
275 printk("scsi%d : irq = %d\n", instance->host_no, instance->irq); 270 instance->host_no, instance->irq);
276#endif
277 271
278 ++current_override; 272 ++current_override;
279 ++count; 273 ++count;