]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/nftlcore.c
Merge remote branch 'wireless-next/master' into ath6kl-next
[karo-tx-linux.git] / drivers / mtd / nftlcore.c
index 8847e60ad167e9b38b840519ea512a9b24d4bdcb..a75382aff5f68d17f419307b70eb4427f7c07507 100644 (file)
@@ -56,7 +56,7 @@ static void nftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
        if (memcmp(mtd->name, "DiskOnChip", 10))
                return;
 
-       if (!mtd->block_isbad) {
+       if (!mtd_can_have_bb(mtd)) {
                printk(KERN_ERR
 "NFTL no longer supports the old DiskOnChip drivers loaded via docprobe.\n"
 "Please use the new diskonchip driver under the NAND subsystem.\n");