[kernel] generic-2.6: revert yaffs changes [11378], the new code is not working corre...
[openwrt/svn-archive/archive.git] / target / linux / generic-2.6 / files-2.6.25 / fs / yaffs2 / yaffs_tagscompat.c
index ab756d06d0a9eb580ef520bd48265dc08e03e4f3..7622b1af7c0d3ff3970e7020fe69dbd062fd3dec 100644 (file)
@@ -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;