projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[yaffs2.git]
/
yaffs_mtdif.c
diff --git
a/yaffs_mtdif.c
b/yaffs_mtdif.c
index 4c87542e71b5e525cd12dbd569b59e23fc85de0a..9537b1a509c568f55495160d5151a98fc5ec0579 100644
(file)
--- a/
yaffs_mtdif.c
+++ b/
yaffs_mtdif.c
@@
-13,7
+13,7
@@
*
*/
*
*/
-const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.
7 2005-08-01 20:52:35
luc Exp $";
+const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.
9 2005-08-02 19:18:44
luc Exp $";
#include "yportenv.h"
#include "yportenv.h"
@@
-28,6
+28,9
@@
const char *yaffs_mtdif_c_version = "$Id: yaffs_mtdif.c,v 1.7 2005-08-01 20:52:3
static struct nand_oobinfo yaffs_oobinfo = {
.useecc = 1,
static struct nand_oobinfo yaffs_oobinfo = {
.useecc = 1,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,8))
+ .eccbytes = 6,
+#endif
.eccpos = {8, 9, 10, 13, 14, 15}
};
.eccpos = {8, 9, 10, 13, 14, 15}
};
@@
-49,9
+52,9
@@
int nandmtd_WriteChunkToNAND(yaffs_Device *dev,int chunkInNAND,const __u8 *data,
if(data && spare)
{
if(dev->useNANDECC)
if(data && spare)
{
if(dev->useNANDECC)
- mtd->write_ecc(mtd,addr,dev->nBytesPerChunk,&dummy,data,spareAsBytes,&yaffs_oobinfo);
+
retval =
mtd->write_ecc(mtd,addr,dev->nBytesPerChunk,&dummy,data,spareAsBytes,&yaffs_oobinfo);
else
else
- mtd->write_ecc(mtd,addr,dev->nBytesPerChunk,&dummy,data,spareAsBytes,&yaffs_noeccinfo);
+
retval =
mtd->write_ecc(mtd,addr,dev->nBytesPerChunk,&dummy,data,spareAsBytes,&yaffs_noeccinfo);
}
else
{
}
else
{