mtd/drivers/mtd/nand nand.c,1.55,1.56

David Woodhouse dwmw2 at infradead.org
Wed Jul 23 10:23:18 EDT 2003


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

Modified Files:
	nand.c 
Log Message:
Fix mtd->size setting in nand_scan() (from David Müller)


Index: nand.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- nand.c	16 Jul 2003 22:34:02 -0000	1.55
+++ nand.c	23 Jul 2003 14:23:15 -0000	1.56
@@ -1402,7 +1402,7 @@
 	if (i > 1)
 		printk(KERN_INFO "%d NAND chips detected\n", i);
 
-	mtd->size = (1 << nand_flash_ids[i].chipshift) /* * i when we fix the rest of the code */;
+	mtd->size = (1 << this->chipshift) /* * i when we fix the rest of the code */;
 
 	/* 
 	 * check ECC mode, default to software




More information about the linux-mtd-cvs mailing list