]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/nand/nand_bbt.c
mtd: nand: introduce NAND_CREATE_EMPTY_BBT
[karo-tx-linux.git] / drivers / mtd / nand / nand_bbt.c
index 1dcafb8f47dd9309d4114231749019ff58c407f3..586b981f0e61397f08e26ee71e1d63a9c39c0068 100644 (file)
@@ -999,7 +999,8 @@ static int check_create(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_desc
                        continue;
 
                /* Create the table in memory by scanning the chip(s) */
-               create_bbt(mtd, buf, bd, chipsel);
+               if (!(this->options & NAND_CREATE_EMPTY_BBT))
+                       create_bbt(mtd, buf, bd, chipsel);
 
                td->version[i] = 1;
                if (md)