mtd/drivers/mtd/chips gen_probe.c,1.17,1.18

David Woodhouse dwmw2 at infradead.org
Tue Jul 13 06:20:43 EDT 2004


Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv28882/chips

Modified Files:
	gen_probe.c 
Log Message:
fix interleave tests

Index: gen_probe.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/gen_probe.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- gen_probe.c	12 Jul 2004 14:02:30 -0000	1.17
+++ gen_probe.c	13 Jul 2004 10:20:41 -0000	1.18
@@ -81,13 +81,13 @@
 #endif
 	cfi.chipshift = cfi.cfiq->DevSize;
 
-	if (cfi_interleave_is_1(cfi)) {
+	if (cfi_interleave_is_1(&cfi)) {
 		;
-	} else if (cfi_interleave_is_2(cfi)) {
+	} else if (cfi_interleave_is_2(&cfi)) {
 		cfi.chipshift++;
-	} else if (cfi_interleave_is_4(cfi)) {
+	} else if (cfi_interleave_is_4((&cfi))) {
 		cfi.chipshift += 2;
-	} else if (cfi_interleave_is_8(cfi)) {
+	} else if (cfi_interleave_is_8(&cfi)) {
 		cfi.chipshift += 3;
 	} else {
 		BUG();





More information about the linux-mtd-cvs mailing list