Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2567572 authored by Artem Bityutskiy's avatar Artem Bityutskiy Committed by David Woodhouse
Browse files

mtd: nftlcore: remove out-of-date and now irrelevant piece of code

parent bb4a0986
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -56,13 +56,6 @@ static void nftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
	if (memcmp(mtd->name, "DiskOnChip", 10))
	if (memcmp(mtd->name, "DiskOnChip", 10))
		return;
		return;


	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");
		return;
	}

	pr_debug("NFTL: add_mtd for %s\n", mtd->name);
	pr_debug("NFTL: add_mtd for %s\n", mtd->name);


	nftl = kzalloc(sizeof(struct NFTLrecord), GFP_KERNEL);
	nftl = kzalloc(sizeof(struct NFTLrecord), GFP_KERNEL);