]> git.sur5r.net Git - u-boot/blobdiff - fs/yaffs2/yaffs_packedtags2.c
spl, nand: add 4bit HW ecc oob first nand_read_page function
[u-boot] / fs / yaffs2 / yaffs_packedtags2.c
index 6860876c4389803fcbc4274d5caded7fd631cf51..474400999b34ce888a675c489016d5359743066e 100644 (file)
@@ -11,6 +11,9 @@
  * published by the Free Software Foundation.
  */
 
+/* XXX U-BOOT XXX */
+#include <common.h>
+
 #include "yaffs_packedtags2.h"
 #include "yportenv.h"
 #include "yaffs_tagsvalidity.h"
@@ -128,10 +131,10 @@ void yaffs_UnpackTags2(yaffs_ExtendedTags * t, yaffs_PackedTags2 * pt)
                                                  (yaffs_PackedTags2TagsPart),
                                                  &pt->ecc, &ecc);
                        switch(result){
-                               case 0: 
-                                       t->eccResult = YAFFS_ECC_RESULT_NO_ERROR; 
+                               case 0:
+                                       t->eccResult = YAFFS_ECC_RESULT_NO_ERROR;
                                        break;
-                               case 1: 
+                               case 1:
                                        t->eccResult = YAFFS_ECC_RESULT_FIXED;
                                        break;
                                case -1: