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

David Woodhouse dwmw2 at infradead.org
Tue Jul 13 18:33:35 EDT 2004


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

Modified Files:
	gen_probe.c 
Log Message:
check interleave is supported

Index: gen_probe.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/gen_probe.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- gen_probe.c	13 Jul 2004 10:20:41 -0000	1.18
+++ gen_probe.c	13 Jul 2004 22:33:32 -0000	1.19
@@ -164,6 +164,9 @@
 
 	for (nr_chips = min_chips; nr_chips <= max_chips; nr_chips <<= 1) {
 
+		if (!cfi_interleave_supported(nr_chips))
+		    continue;
+
 		cfi->interleave = nr_chips;
 
 		for (type = 0; type < 3; type++) {





More information about the linux-mtd-cvs mailing list