mtd: nand: Use the mirror BBT descriptor when reading its version
[deliverable/linux.git] / drivers / mtd / nand / nand_bbt.c
index 30d1319ff0657ce75b063023d9eee0c65d2f5873..c126469b06457d98e0826d094390ba91a3710d52 100644 (file)
@@ -390,7 +390,7 @@ static int read_abs_bbts(struct mtd_info *mtd, uint8_t *buf,
        /* Read the mirror version, if available */
        if (md && (md->options & NAND_BBT_VERSION)) {
                scan_read_raw(mtd, buf, (loff_t)md->pages[0] << this->page_shift,
-                             mtd->writesize, td);
+                             mtd->writesize, md);
                md->version[0] = buf[bbt_get_ver_offs(mtd, md)];
                pr_info("Bad block table at page %d, version 0x%02X\n",
                         md->pages[0], md->version[0]);
This page took 0.056636 seconds and 5 git commands to generate.