mtd: introduce mtd_block_isbad interface
[deliverable/linux.git] / drivers / mtd / nftlmount.c
index b068dc8a3666c1a28714560425c8628bda148911..156af9f87961f403c30a4949feffe3ff50e58515 100644 (file)
@@ -242,7 +242,8 @@ The new DiskOnChip driver already scanned the bad block table.  Just query it.
                        if (buf[i & (SECTORSIZE - 1)] != 0xff)
                                nftl->ReplUnitTable[i] = BLOCK_RESERVED;
 #endif
-                       if (nftl->mbd.mtd->block_isbad(nftl->mbd.mtd, i * nftl->EraseSize))
+                       if (mtd_block_isbad(nftl->mbd.mtd,
+                                           i * nftl->EraseSize))
                                nftl->ReplUnitTable[i] = BLOCK_RESERVED;
                }
 
This page took 0.030328 seconds and 5 git commands to generate.