Title: [9159] trunk/drivers/mtd/nand/bf5xx_nand.c: bf5xx_nand: fix badblock location with bootrom oob -- bbt isnt actually used, just badblockpos
- Revision
- 9159
- Author
- vapier
- Date
- 2010-09-22 03:28:39 -0400 (Wed, 22 Sep 2010)
Log Message
bf5xx_nand: fix badblock location with bootrom oob -- bbt isnt actually used, just badblockpos
Modified Paths
Diff
Modified: trunk/drivers/mtd/nand/bf5xx_nand.c (9158 => 9159)
--- trunk/drivers/mtd/nand/bf5xx_nand.c 2010-09-22 02:46:44 UTC (rev 9158)
+++ trunk/drivers/mtd/nand/bf5xx_nand.c 2010-09-22 07:28:39 UTC (rev 9159)
@@ -110,15 +110,6 @@
0};
#ifdef CONFIG_MTD_NAND_BF5XX_BOOTROM_ECC
-static uint8_t bbt_pattern[] = { 0xff };
-
-static struct nand_bbt_descr bootrom_bbt = {
- .options = 0,
- .offs = 63,
- .len = 1,
- .pattern = bbt_pattern,
-};
-
static struct nand_ecclayout bootrom_ecclayout = {
.eccbytes = 24,
.eccpos = {
@@ -818,7 +809,6 @@
/* setup hardware ECC data struct */
if (hardware_ecc) {
#ifdef CONFIG_MTD_NAND_BF5XX_BOOTROM_ECC
- chip->badblock_pattern = &bootrom_bbt;
chip->ecc.layout = &bootrom_ecclayout;
#endif
chip->read_buf = bf5xx_nand_dma_read_buf;
@@ -839,6 +829,10 @@
goto out_err_nand_scan;
}
+#ifdef CONFIG_MTD_NAND_BF5XX_BOOTROM_ECC
+ chip->badblockpos = 63;
+#endif
+
/* add NAND partition */
bf5xx_nand_add_partition(info);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits