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

Commit d117040b authored by Dmitry Eremin-Solenikov's avatar Dmitry Eremin-Solenikov Committed by Artem Bityutskiy
Browse files

mtd: edb7312: correctly pass MTD name to parsers



cmdline partitions parser expects MTD name at mtd->name, instead of
origin, while edb7312 passes MTDID as origin. Fix that.

Signed-off-by: default avatarDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 3a8fb12a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -88,8 +88,9 @@ static int __init init_edb7312nor(void)
	}
	if (mymtd) {
		mymtd->owner = THIS_MODULE;
		mymtd->name = MTDID;

		mtd_parts_nb = parse_mtd_partitions(mymtd, probes, &mtd_parts, MTDID);
		mtd_parts_nb = parse_mtd_partitions(mymtd, probes, &mtd_parts, 0);
		if (mtd_parts_nb > 0)
			part_type = "detected";