mtd/drivers/mtd mtdpart.c,1.31,1.32

Joakim Tjernlund jocke at infradead.org
Mon Oct 21 09:40:08 EDT 2002


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

Modified Files:
	mtdpart.c 
Log Message:
Better point()/unpoint support impl. in cfi_cmdset_0001.c. 
The other chip drivers should be able to copy the point()/unpoint()
support in cfi_cmdset_0001.c. Updated mtdpart.c pmc551.c slram.c mtdram.c
due to match the unpoint() prototype change.


Index: mtdpart.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdpart.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- mtdpart.c	13 Sep 2002 14:39:11 -0000	1.31
+++ mtdpart.c	21 Oct 2002 13:40:05 -0000	1.32
@@ -69,11 +69,11 @@
 	return part->master->point (part->master, from + part->offset, 
 				    len, retlen, buf);
 }
-static void part_unpoint (struct mtd_info *mtd, u_char *addr)
+static void part_unpoint (struct mtd_info *mtd, u_char *addr, loff_t from, size_t len)
 {
 	struct mtd_part *part = PART(mtd);
 
-	part->master->unpoint (part->master, (void *)((unsigned long) addr) - part->offset);
+	part->master->unpoint (part->master, addr, from + part->offset, len);
 }
 
 





More information about the linux-mtd-cvs mailing list