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

David Woodhouse dwmw2 at infradead.org
Mon Jul 12 17:58:46 EDT 2004


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

Modified Files:
	map_ram.c 
Log Message:
Compile again


Index: map_ram.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/map_ram.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- map_ram.c	17 Jun 2004 14:13:54 -0000	1.18
+++ map_ram.c	12 Jul 2004 21:58:44 -0000	1.19
@@ -104,10 +104,13 @@
 	/* Yeah, it's inefficient. Who cares? It's faster than a _real_
 	   flash erase. */
 	struct map_info *map = (struct map_info *)mtd->priv;
+	map_word allff;
 	unsigned long i;
 
-	for (i=0; i<instr->len; i++)
-		map_write8(map, 0xFF, instr->addr + i);
+	allff = map_word_ff(map);
+
+	for (i=0; i<instr->len; i += map_bankwidth(map))
+		map_write(map, allff, instr->addr + i);
 
 	instr->state = MTD_ERASE_DONE;
 





More information about the linux-mtd-cvs mailing list