mtd/drivers/mtd/nand diskonchip.c,1.2,1.3

David Woodhouse dwmw2 at infradead.org
Wed Jul 9 07:24:19 EDT 2003


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

Modified Files:
	diskonchip.c 
Log Message:
cleanup

Index: diskonchip.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/diskonchip.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- diskonchip.c	9 Jul 2003 11:23:44 -0000	1.2
+++ diskonchip.c	9 Jul 2003 11:24:17 -0000	1.3
@@ -12,8 +12,9 @@
 
 #include <linux/kernel.h>
 #include <linux/init.h>
-#include <asm/io.h>
+#include <linux/sched.h>
 #include <linux/delay.h>
+#include <asm/io.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/nand.h>
@@ -258,16 +259,13 @@
 	chip -= (floor << doc->floorshift);
 #endif
 
-	/* Deassert CE */
+	/* 11.4.4 -- deassert CE before changing chip */
 	doc200x_hwcontrol(mtd, NAND_CTL_CLRNCE);
 
 	if(debug)printk("select chip %d\n", chip);
 
 	if (chip == -1)
 		return;
-		
-
-	/* 11.4.4 -- deassert CE before changing chip */
 
 	WriteDOC(floor, docptr, FloorSelect);
 	WriteDOC(chip, docptr, CDSNDeviceSelect);




More information about the linux-mtd-cvs mailing list