patch-2.1.29 linux/drivers/scsi/t128.c

Next file: linux/drivers/scsi/wd7000.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.28/linux/drivers/scsi/t128.c linux/drivers/scsi/t128.c
@@ -214,13 +214,15 @@
 	else 
 	    for (; !base && (current_base < NO_BASES); ++current_base) {
 #if (TDEBUG & TDEBUG_INIT)
-    printk("scsi : probing address %08x\n", (unsigned int) bases[current_base].address);
+    printk("scsi-t128 : probing address %08x\n", (unsigned int) bases[current_base].address);
 #endif
 		for (sig = 0; sig < NO_SIGNATURES; ++sig) 
-		    if (!bases[current_base].noauto && !memcmp 
-			(bases[current_base].address + signatures[sig].offset, 
-			signatures[sig].string, strlen(signatures[sig].string))) {
-			base = bases[current_base].address;
+		    if (!bases[current_base].noauto && 
+			check_signature(bases[current_base].address +
+					signatures[sig].offset,
+					signatures[sig].string,
+					strlen(signatures[sig].string))) {
+		      base = bases[current_base].address;
 #if (TDEBUG & TDEBUG_INIT)
 			printk("scsi-t128 : detected board.\n");
 #endif

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