Update CHANGELOG; prepare Prepare v2009.11
[platform/kernel/u-boot.git] / drivers / mtd / onenand / onenand_bbt.c
index dde11ae..d538f95 100644 (file)
@@ -3,7 +3,7 @@
  *
  *  Bad Block Table support for the OneNAND driver
  *
- *  Copyright(c) 2005-2007 Samsung Electronics
+ *  Copyright(c) 2005-2008 Samsung Electronics
  *  Kyungmin Park <kyungmin.park@samsung.com>
  *
  *  TODO:
@@ -102,8 +102,8 @@ static int create_bbt(struct mtd_info *mtd, uint8_t * buf,
                                             bd->offs, &ops);
 
                        /* If it is a initial bad block, just ignore it */
-                        if (ret == ONENAND_BBT_READ_FATAL_ERROR)
-                                return -EIO;
+                       if (ret == ONENAND_BBT_READ_FATAL_ERROR)
+                               return -EIO;
 
                        if (ret || check_short_pattern
                            (&buf[j * scanlen], scanlen, mtd->writesize, bd)) {
@@ -156,8 +156,8 @@ static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt)
        res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03;
 
        MTDDEBUG (MTD_DEBUG_LEVEL2,
-                 "onenand_isbad_bbt: bbt info for offs 0x%08x: (block %d) 0x%02x\n",
-                 (unsigned int)offs, block >> 1, res);
+               "onenand_isbad_bbt: bbt info for offs 0x%08x: (block %d) 0x%02x\n",
+               (unsigned int)offs, block >> 1, res);
 
        switch ((int)res) {
        case 0x00: