Skip to contentSkip to conversation

mtd: edb7312: correctly pass MTD name to parsers

PATCH In review Dmitry Eremin-Solenikov 2 participants 2 messages Jun 9, 2011 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/mtd/maps/edb7312.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/mtd/maps/edb7312.c +2 -1
index fe42a21..b07acd6 100644
@@ -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";
 
Signature · 1 line
1.7.5.3
#1 lore raw
Quoted 4 lines · Dmitry Eremin-Solenikov

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

Pushed, thanks!

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)