diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-06-10 08:20:19 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-06-10 08:20:19 +0000 |
commit | 5f27e3969eec8b0b9b4e9ee359e8273566cc3455 (patch) | |
tree | e8440362ae34c256051c8f5b43cf6ed14a1abb80 /target/linux/generic-2.6/files-2.6.26/fs/yaffs2/yaffs_tagscompat.c | |
parent | 00ee3a96d1698bb86e51d0ea1fa2c5dc8b8ebd1d (diff) | |
download | master-187ad058-5f27e3969eec8b0b9b4e9ee359e8273566cc3455.tar.gz master-187ad058-5f27e3969eec8b0b9b4e9ee359e8273566cc3455.tar.bz2 master-187ad058-5f27e3969eec8b0b9b4e9ee359e8273566cc3455.zip |
[kernel] generic-2.6: revert yaffs changes [11378], the new code is not working correctly on RouterBoards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11427 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/files-2.6.26/fs/yaffs2/yaffs_tagscompat.c')
-rw-r--r-- | target/linux/generic-2.6/files-2.6.26/fs/yaffs2/yaffs_tagscompat.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/target/linux/generic-2.6/files-2.6.26/fs/yaffs2/yaffs_tagscompat.c b/target/linux/generic-2.6/files-2.6.26/fs/yaffs2/yaffs_tagscompat.c index ab756d06d0..7622b1af7c 100644 --- a/target/linux/generic-2.6/files-2.6.26/fs/yaffs2/yaffs_tagscompat.c +++ b/target/linux/generic-2.6/files-2.6.26/fs/yaffs2/yaffs_tagscompat.c @@ -14,7 +14,6 @@ #include "yaffs_guts.h" #include "yaffs_tagscompat.h" #include "yaffs_ecc.h" -#include "yaffs_getblockinfo.h" static void yaffs_HandleReadDataError(yaffs_Device * dev, int chunkInNAND); #ifdef NOTYET @@ -439,7 +438,7 @@ int yaffs_TagsCompatabilityReadChunkWithTagsFromNAND(yaffs_Device * dev, yaffs_ECCResult eccResult; static yaffs_Spare spareFF; - static int init = 0; + static int init; if (!init) { memset(&spareFF, 0xFF, sizeof(spareFF)); @@ -498,9 +497,9 @@ int yaffs_TagsCompatabilityMarkNANDBlockBad(struct yaffs_DeviceStruct *dev, } int yaffs_TagsCompatabilityQueryNANDBlock(struct yaffs_DeviceStruct *dev, - int blockNo, - yaffs_BlockState *state, - __u32 *sequenceNumber) + int blockNo, yaffs_BlockState * + state, + int *sequenceNumber) { yaffs_Spare spare0, spare1; |