mtd/drivers/mtd mtdpart.c,1.43,1.44
gleixner at infradead.org
gleixner at infradead.org
Thu May 6 04:23:05 EDT 2004
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv13389
Modified Files:
mtdpart.c
Log Message:
Inherit default oob layout for partitions. Patch provided by Pantelis Antoniou
Index: mtdpart.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdpart.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- mtdpart.c 29 Mar 2004 11:25:40 -0000 1.43
+++ mtdpart.c 6 May 2004 08:23:02 -0000 1.44
@@ -485,6 +485,9 @@
parts[i].name);
}
+ /* copy oobinfo from master */
+ memcpy(&slave->mtd.oobinfo, &master->oobinfo, sizeof(slave->mtd.oobinfo));
+
if(parts[i].mtdp)
{ /* store the object pointer (caller may or may not register it */
*parts[i].mtdp = &slave->mtd;
More information about the linux-mtd-cvs
mailing list